Jump to content

Hello I have a problem on ubuntu server with group and owner permissions of a directory
I have 3 users mat,Brandon,kylian
I have the folders
/servers/mmtp
/servers/Brandon
Now I set the home directory from mat to /servers/mmtp and the home directory from Brandon to /servers/Brandon
I also made the groups mmtp and Brandon I have set the folder /servers/mmtp to owner kylian and group mmtp same for the /servers/Brandon owner is kylian and group is Brandon
wen ever I set the permissions from these 2 directory's to 0755 both users can access edit and delete all files in each directory I want it so kylian can access everything and mat can access /servers/mmtp and Brandon /servers/Brandon but not each others folder setting permissions 0755 will allow them to both edit the directory even though the groups and owner are correctly set

Link to comment
https://linustechtips.com/topic/1063993-ubuntu-server/
Share on other sites

Link to post
Share on other sites

20 minutes ago, Kylian said:

I set the home directory from mat to /servers/mmtp [...] I have set the folder /servers/mmtp to owner kylian and group mmtp

If /servers/mmtp is the home folder for mat then mat should be the owner. Same with Brandon. If you want kylian to have full permissions on those folders make kylian a member of groups mmtp and Brandon; set the ownership of /servers to kylian, the ownership of mmtp to mat:mmtp and the ownership of Brandon to Brandon:Brandon, then set all permissions to 770.

Don't ask to ask, just ask... please聽馃え

sudo chmod -R 000 /*

Link to comment
https://linustechtips.com/topic/1063993-ubuntu-server/#findComment-12568346
Share on other sites

Link to post
Share on other sites

13 minutes ago, Sauron said:

If /servers/mmtp is the home folder for mat then mat should be the owner. Same with Brandon. If you want kylian to have full permissions on those folders make kylian a member of groups mmtp and Brandon; set the ownership of /servers to kylian, the ownership of mmtp to mat:mmtp and the ownership of Brandon to Brandon:Brandon, then set all permissions to 770.

This is working.

Also if i make a new user lets say mitchel i can just add him to 1 of the groups i made to allow him聽to acces 1 of the folders?

also can i make that users home folder also the same as 1 of the other users?

Link to comment
https://linustechtips.com/topic/1063993-ubuntu-server/#findComment-12568369
Share on other sites

Link to post
Share on other sites

43 minutes ago, Kylian said:

Also if i make a new user lets say mitchel i can just add him to 1 of the groups i made to allow him聽to acces 1 of the folders?

Yes.

44 minutes ago, Kylian said:

also can i make that users home folder also the same as 1 of the other users?

No. I mean, you can, but you're going to have problems. Why do you want to do this?

Don't ask to ask, just ask... please聽馃え

sudo chmod -R 000 /*

Link to comment
https://linustechtips.com/topic/1063993-ubuntu-server/#findComment-12568442
Share on other sites

Link to post
Share on other sites

37 minutes ago, Kylian said:

i am hosting a cople of minecraft servers for friends on it and i want some friends to acces 1 server together and others the other servers

I don't think you need to share home folders between users for that

Don't ask to ask, just ask... please聽馃え

sudo chmod -R 000 /*

Link to comment
https://linustechtips.com/topic/1063993-ubuntu-server/#findComment-12568529
Share on other sites

Link to post
Share on other sites

Just now, Kylian said:

I just want to isloate them so multiple uses can acces 1 folder and other multiple users the other and are unable to acces each others folders

Yeah, you don't need to make that folder the users' home folder to make that work. What we did before with the permissions works with any folder (except system folders, never change permissions on those) - a user's home folder is where that user's specific data is stored, messing with it can cause problems and in your case there's no reason to do it.

Don't ask to ask, just ask... please聽馃え

sudo chmod -R 000 /*

Link to comment
https://linustechtips.com/topic/1063993-ubuntu-server/#findComment-12568547
Share on other sites

Link to post
Share on other sites

1 minute ago, Sauron said:

Yeah, you don't need to make that folder the users' home folder to make that work. What we did before with the permissions works with any folder (except system folders, never change permissions on those) - a user's home folder is where that user's specific data is stored, messing with it can cause problems and in your case there's no reason to do it.

The reason i changed the home folder is they shut only be able to acces the co responding server folder nofing else

Link to comment
https://linustechtips.com/topic/1063993-ubuntu-server/#findComment-12568552
Share on other sites

Link to post
Share on other sites

Make another partition and use it as a shared storage between all your user. Create a group call shares_storage_1 and assign all users with permission to that partition to that group. Change group ownership of everything in that partition to your shares_storage_1 and do a chmod -R 770.

If you need more shared storage, create more partitions and groups. You don't need to share home folders.聽

Sudo make me a sandwich聽

Link to comment
https://linustechtips.com/topic/1063993-ubuntu-server/#findComment-12569451
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now