Could not write to my home directory
:Pengy: Strange very Strange,I use Mepis and I downloaded some icons to my home,ran;
su <password> tar xjf icons.tar.bz2 nothing happened so I typed ls,and it unziped to my home folder,when I tried to download something to my home access was denied that I could not right to that,wow so I loged out and tried to log back in and could not,loged back out log in as root changed the permissions on my home and now I can log in,what else do I need to do to fix up this mess I got myself in,thanks david |
Not quite sure how untaring something
as root would change all permissions/ownerships, but try ... su - find /home/<userid> -exec chown <userid>:users {} \; Cheers, Tink |
When you did su you logged in as root. So when you un tarred the files root wrote them, so root owns any files created ( no access as a normal user ). You do not need to be root to un tar files in your home directory, unless root downloaded them ( then just change the owner with chown ).
|
I tried that tinkster,no such file or directory,when I untared them I just messed up is all I know I don't have to be root,daydream or something,thanks david
|
should I just do ;
/home/<userid> -exec chown <userid>:users {} \; thanks, |
Is there a way to chown everything in the directory to me or should I just trash the folders that are roots,thanks david
|
You use the recursive option
chown -R newowner:newgroup thedirectory |
Thanks, chown -R david: <what group should I put?> /home/david :Pengy:
|
Usually the same group as you user name. i.e.
chown -R david:david thedirectory See what your other files are with ls -l |
Would it be chown -R david:user /home/david
the icons ended up -rwxr -xr-- 1 1006 81 |
It could be... depends on your system thats why I suggested ls -l. mine looks like for one file.
-rw-r--r-- 1 leonscape leonscape 1190201 2004-05-07 23:22 Labryinth.png or -rw-r--r-- 1 1000 1000 1190201 2004-05-07 23:22 Labryinth.png For some reason the -n option seems to be on for your ls command. |
The other files are -rw-r--r-- 1 david user
the directorys are drwxr-xr-x 2 david user and the icons I would like to change are -rwxr -xr-- 1 1006 81 thanks again,david |
Then chown -R david:user it is.
|
invalid group david:user should I try david:david or just leave it alone everything is working :Pengy: thanks for your time
|
That weird, but try david:david to see if its a valid group.
|
All times are GMT -5. The time now is 11:04 PM. |