Re: Folder Permission question
Originally Posted by
BStrizzy
Hey guys,
I recently added a couple of people to my home server and the way I am setting it up is that they can access my external hdd that is mounted to my server. I have some school work in a folder that i would like them to have read only permissions. from my research and to my knowledge if I want to make this happend I simply have to do a
Code:
sudo chmod 740 /home/cj/entertainment/school/
by doing this, this should not allow the user, cj, to delete any files, but for some reason when i log in as cj via ssh i can still delete files and stuff.
advice?
hi
oh yes you can delete it. why --> in unix/linux you ain't delete the file (and its contence).
your folder school, i guess, looks like "drwxrwx000". but for sure it is set for write permission for the group. now back to "rm". if you delete a file in a folder (wich is a file too) you only delete the inode entry. there for the file is unvisible with ls but the contens is still on the disk. just give the file the sticky-bit.
using e.g.: chmod 1750 that gives you the permissions: drwxr-x--T . that means: owner can do anything, group can only read and walk around and other can do nothing.
on the system have a look at /tmp
cheers
"What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht
Bookmarks