Permissions

Support for security such as Firewalls and securing linux
Post Reply
webnoob
Posts: 37
Joined: 2017/02/01 11:26:27

Permissions

Post by webnoob » 2018/10/18 18:03:55

I have a Centos 7 Server where I run a Minecraft server. I often take backup of the entire Minecraft folder. My Server recently crashed and I decided to make a new server instead of trying to get the server to work.
Instead for running Minecraft from the root user I decided to create a user for it. I copied my Minecraft folder backup into the new users Home folder. When I try to start the server I get a permissions error.

How do I give ownership of the Minecraft folder, and sub-folders and sub-files, to the new user all at once?

mghe
Posts: 766
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

Re: Permissions

Post by mghe » 2018/10/19 05:47:00

What message do You have?

Did You look to server documentation? I think there will be answer for You question.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Permissions

Post by TrevorH » 2018/10/19 07:55:34

You'll need to use the chown command to change the ownership of the files/directories involved. You can read man chown for complete usage info but you'll want to use the -R (recurse) switch and specify the new user:group. Be careful of what and where you run that as you'll need to be root to change the ownership of the root owned files to someone else and a mistake there could end up changing ownership recursively of the wrong thing.

And good idea, never run anything as root that doesn't require it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

webnoob
Posts: 37
Joined: 2017/02/01 11:26:27

Re: Permissions

Post by webnoob » 2018/10/20 15:39:54

how do I do it on a folder in the other users home folder?

Post Reply