file permissions
I have created two user account myself and a friends, when my frind logs in and opens a openoffice document, and chooses to save that document in *my* home directory he cant... which is good and which is what i want... but....he still can *see* whats in my home directory.
Is it possible to prevent this ? i.e stop him seeing any files at all that belong to me ?? tia. |
If you do
'ls -l /home/' the permissions on your home directory should be like this: 'drwx------ 4 gene users 4096 Nov 13 19:00 gene' If not, adjust as nessesary. If they are that, then its openoffice specific thing, and you can do nothing about it. |
When i do an "ls -l" i get ;
drwxr-xr-x 23 Bill users 1528 2003-11-17 20:29 Bill drwxr-xr-x 51 John users 3736 2003-11-17 20:30 John This isnt correct then ? Could someone give me an example how to change them ? and what are the numbers 23 and 51 for after the permissions ? tia |
Don't allow others to change into your home,
or read files in your home itself... chmod a-rwx, u=rwx /home/<youruser> Remove read, write and enter(execute) for all but your user for all subdirectories: find /home/<youruser> -file d -exec chmod a-rwx, u=rwx {} \; Remove read, write and for all but your user for all files in all subdirectories: find /home/<youruser> -file f -exec chmod go-rwx, u+rw {} \; Should do the trick :) Cheers, Tink |
good, basically your folder permissions are messed up. Everyone can see private folders. Thankfully they cannot write to them, only read and execute. Here is the command you have to run to fix them:
'chmod u=rwx,g=,o= /home/[yourdir]' |
Tink beat me to it. Good work, either do what he sais or what i say, its the same thing.
|
Great,.... thanx guys :)
|
All times are GMT -5. The time now is 10:16 PM. |