LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 11-11-2002, 10:22 PM   #1
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Rep: Reputation: 30
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.
 
Old 11-11-2002, 10:33 PM   #2
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Original Poster
Rep: Reputation: 30
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.
 
Old 11-11-2002, 11:39 PM   #3
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Try running chmod 666 /dev/dsp and see if it will let you log in as user.
 
Old 11-12-2002, 07:45 AM   #4
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Original Poster
Rep: Reputation: 30
I get the same thing. What exactly does chmod do?
 
Old 11-12-2002, 09:45 AM   #5
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
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
 
Old 11-12-2002, 08:20 PM   #6
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Original Poster
Rep: Reputation: 30
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.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: mail command failed for /var/log/squidguard/squidGuard.log.6 Niceman2005 Linux - Networking 1 01-22-2009 01:24 PM
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 04:18 PM
Log Out root Then Log In As Other User xtremcoder Linux - General 4 10-04-2004 11:01 PM
Cannot log in as root in X dsbrand Linux - Distributions 4 09-16-2003 12:17 PM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:36 PM.

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
Open Source Consulting | Domain Registration