Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-11-2002, 11:22 PM
|
#1
|
Member
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153
Rep:
|
Help...Can only log in as root after this command
I have been trying to get XMMS to work and after doing the following command, I can only log in as root. Even if I go in and create a new user I cant log in as that user. What did I do wrong and how can I undo it? This is RH7.3 and the command was as follows ....
chmod 622 /dev/dsp and chmod 666 /dev/mixer
When I try to log in as any user, the screen just linda blinks a couple of times, I can see the little X in the middle of the screen and it kicks me right back to the login screen.
|
|
|
11-11-2002, 11:33 PM
|
#2
|
Member
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153
Original Poster
Rep:
|
As a follow up.....I did a ctl-alt-F2 and tried to log in as my regular user and I get this
/dev/null
permission denied
Don't really know what it means but I figure it could have something to do with it and I dont get that when I do the same as root.
|
|
|
11-12-2002, 12:39 AM
|
#3
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
Try running chmod 666 /dev/dsp and see if it will let you log in as user.
|
|
|
11-12-2002, 08:45 AM
|
#4
|
Member
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153
Original Poster
Rep:
|
I get the same thing. What exactly does chmod do?
|
|
|
11-12-2002, 10:45 AM
|
#5
|
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
|
try man chmod
then touch /root/nullpermissions
then ls -la /dev/null > /root/nullpermissions --Now you made a file with original permissions of /dev/null, just in case this doesn't work and you have to put permissions on /dev/null how they were.
now
chmod a+rwx /dev/null
then try to login as another user, it looks like permissions for /dev/null were messed up, if it doesn't work then refer to /root/nullpermissions file you made to restore the permissions as they were.
Also try to login as root and su to any user, for example if youre user is called foo you would login as root and do
su foo
and see is it will switch to user foo.
Hope that helps
-NSKL
|
|
|
11-12-2002, 09:20 PM
|
#6
|
Member
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153
Original Poster
Rep:
|
Ok....I read through the manpage on chmod. It may as well have been written in vulcan for all I understood of it. I tried those commands and it didnt seem to make any difference. What exactly is null? Is there a configuration file somewhere that I can somehow restore from the disc or whatever that will put all the permissions back to how it was out of the box? Its no big deal to go in and redo my user accounts if I could do that somehow. Thanks for the help, I cant believe I screwed the thing up so bad trying to listen to music.
|
|
|
All times are GMT -5. The time now is 07:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|