Ubuntu. Samba. Permissions.

Status
Not open for further replies.

Jayce

Fully Optimized
Messages
3,056
Location
/home/jason
I have a hard drive just for samba, which is mounted on /media/storage.

I have ran sudo chmod 777 -R /media/storage before.

Thing is, that sets the owner of all the files to me. When the user logs in to /media/storage and drops files off, the new files are then owned by the user in question, which we'll say for argument's sake... bill.

So, when I run sudo chmod 777 -R /media/storage, Jason becomes owner of the files. When Bill logs in and drops files off, the old files are still owned by Jason, the new files are owned by Bill.

Jason can still read/write/delete/rename anything he wants.
Bill can still read/write/delete/rename anything he wants.

Yet, the permissions vary.

Why? How can I fix this?

What I tried to do was create a group, like smbusers. Then, I added all users to smbusers... that way those users of that group can read/write/delete/rename any files they want, as long as I set that directory (/media/storage) to be owned by that group.

Thing is, I get an error every time I try to put smbusers as the owner of /media/storage. What am I doing wrong? The error simply says invalid user - smbusers. But smbusers is a group... and everybody that needs to be a member of that group is a member...
 
Status
Not open for further replies.
Back
Top Bottom