Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chmod mistake
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rivitir
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2005
Posts: 105

PostPosted: Mon May 15, 2006 12:32 pm    Post subject: chmod mistake Reply with quote

First off I apologize if this is in the wrong forum, since it had security listed I felt it was best to post this question here.

I think I made a small mistake when I ran a chmod on my / directory, I accedentally made it to were everyone has read access to my entire box because I ran the following by mistake:

Code:

#chmod -R r /


So now all my directories under / have the following permissions:
Code:

drwxr-xr-x


The whole reason I did this was because I was trying to access my music files, and xmms themes in xmms. When I first opened the progam (under my user login) all it would give me is / and thats it... so I ran that command thinking I could now get to my files. Just about as soon as I ran it I realized what I did so I stopped it, but it was to late. I'm new to users, groups and permissions in linux just to warn you ahead of time. Thanks for any help you can provide.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54793
Location: 56N 3W

PostPosted: Mon May 15, 2006 1:23 pm    Post subject: Reply with quote

rivitir,

The easiest way to fix this is to restore from your backups. What you have done is almost as bad as
Code:
rm -rf /
but your box still works.
I'm fairly sure an entire rebuild will fix the permissions on everything except config files but thats not really enough, since some should be readable by root only.

If you don't have backups, you probably want to reinstall.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rivitir
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2005
Posts: 105

PostPosted: Mon May 15, 2006 1:33 pm    Post subject: Reply with quote

Figures... my backups are after I ran this. I guess I'll reinstall. What should I do next time? Will chmod +r / do what I need so xmms can navigate to my home directory and the themes directory?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54793
Location: 56N 3W

PostPosted: Mon May 15, 2006 1:56 pm    Post subject: Reply with quote

rivitir,

That should all work. Your /home/<user> directory is readable by you by defualt, there is no need to set any permissions.
Code:
ls -l /home
drwxr-xr-x   4 neddyseagoon      users  4096 Dec 22  2004 neddyseagoon

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rivitir
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2005
Posts: 105

PostPosted: Mon May 15, 2006 2:44 pm    Post subject: Reply with quote

Thats what I thought, but when you go to add music to your list in xmms, or you try and get your themes all I get is / with no directories under it. I had this issue on my desktop as well as my laptop (2005.1).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54793
Location: 56N 3W

PostPosted: Mon May 15, 2006 3:11 pm    Post subject: Reply with quote

rivitir,

Running as what user ?
It sounds as id you omitted the -m option to useradd, when you created your ordinary user, so your home dorectory was not created and populated from /etc/skel. Then you added a /home/<user> later.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rivitir
Tux's lil' helper
Tux's lil' helper


Joined: 04 Oct 2005
Posts: 105

PostPosted: Mon May 15, 2006 3:32 pm    Post subject: Reply with quote

When I installed on this system (I've only installed gentoo like 3 times total) I followed the instructions in the handbook, I never remember making my own user directory so as far as I can remember I did use the -m.

I currently only have 2 users on this system, root, and my normal everyday user account that is in no special groups.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54793
Location: 56N 3W

PostPosted: Mon May 15, 2006 5:36 pm    Post subject: Reply with quote

rivitir,

xmms should be avle to browse into your /home/<user> with no permisions changes required.
After you have reinstalled, if you still have the problem, post back, an we will look at it some more.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum