View previous topic :: View next topic |
Author |
Message |
rivitir Tux's lil' helper
Joined: 04 Oct 2005 Posts: 105
|
Posted: Mon May 15, 2006 12:32 pm Post subject: chmod mistake |
|
|
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:
So now all my directories under / have the following permissions:
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54797 Location: 56N 3W
|
Posted: Mon May 15, 2006 1:23 pm Post subject: |
|
|
rivitir,
The easiest way to fix this is to restore from your backups. What you have done is almost as bad as 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 |
|
|
rivitir Tux's lil' helper
Joined: 04 Oct 2005 Posts: 105
|
Posted: Mon May 15, 2006 1:33 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54797 Location: 56N 3W
|
Posted: Mon May 15, 2006 1:56 pm Post subject: |
|
|
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 |
|
|
rivitir Tux's lil' helper
Joined: 04 Oct 2005 Posts: 105
|
Posted: Mon May 15, 2006 2:44 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54797 Location: 56N 3W
|
Posted: Mon May 15, 2006 3:11 pm Post subject: |
|
|
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 |
|
|
rivitir Tux's lil' helper
Joined: 04 Oct 2005 Posts: 105
|
Posted: Mon May 15, 2006 3:32 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54797 Location: 56N 3W
|
Posted: Mon May 15, 2006 5:36 pm Post subject: |
|
|
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 |
|
|
|