LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-11-2004, 06:34 PM   #1
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Could not write to my home directory


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
 
Old 05-11-2004, 06:37 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 05-11-2004, 06:37 PM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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 ).
 
Old 05-11-2004, 06:47 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Original Poster
Rep: Reputation: 56
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
 
Old 05-11-2004, 06:54 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Original Poster
Rep: Reputation: 56
should I just do ;
/home/<userid> -exec chown <userid>:users {} \;
thanks,
 
Old 05-11-2004, 07:31 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Original Poster
Rep: Reputation: 56
Is there a way to chown everything in the directory to me or should I just trash the folders that are roots,thanks david
 
Old 05-11-2004, 07:35 PM   #7
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
You use the recursive option

chown -R newowner:newgroup thedirectory

Last edited by leonscape; 05-11-2004 at 07:37 PM.
 
Old 05-11-2004, 08:06 PM   #8
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Original Poster
Rep: Reputation: 56
Thanks, chown -R david: <what group should I put?> /home/david
 
Old 05-11-2004, 08:10 PM   #9
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Usually the same group as you user name. i.e.

chown -R david:david thedirectory

See what your other files are with ls -l
 
Old 05-11-2004, 08:18 PM   #10
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Original Poster
Rep: Reputation: 56
Would it be chown -R david:user /home/david
the icons ended up -rwxr -xr-- 1 1006 81
 
Old 05-11-2004, 08:27 PM   #11
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
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.
 
Old 05-11-2004, 08:40 PM   #12
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Original Poster
Rep: Reputation: 56
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
 
Old 05-11-2004, 08:50 PM   #13
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Then chown -R david:user it is.
 
Old 05-11-2004, 08:57 PM   #14
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Original Poster
Rep: Reputation: 56
invalid group david:user should I try david:david or just leave it alone everything is working thanks for your time
 
Old 05-11-2004, 09:01 PM   #15
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
That weird, but try david:david to see if its a valid group.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't write to home directory error bond82 Mandriva 5 06-06-2007 03:11 PM
Installed newer mandrake, but /home directory doesn't have write access anymore?!? repeater75 Mandriva 2 02-19-2004 09:48 PM
"No write access to $HOME directory" Arthaus Linux - Newbie 2 01-12-2004 08:22 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM
Permitting a user to write to another users home directory rddreamz Linux - Newbie 4 11-19-2003 02:01 AM


All times are GMT -5. The time now is 08:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration