LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-17-2010, 10:05 AM   #16
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
Question


Quote:
Originally Posted by prayag_pjs View Post
Hi Do this;
Restart your Linux system Press ctrl+alt+f2
you will get black and white screen with login option there try to login as root and put the password which you think you remember...let us know if you can login...also login as your normal user and let us know if you can login...
Prayag are you there?
Well i pressed ctrl+alt+f2, a black screen came. Then i logged in with the user name as root and the password. It was successfull. i exited and again logged in with the normal user and same password. It was again successful. But when i am giving su and trying to login, it is showing incorrect password. So, what to do next?
 
Old 09-17-2010, 10:13 AM   #17
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Try running:

$ su - root

and see if you can su to root that way.

Last edited by kilgoretrout; 09-17-2010 at 10:15 AM.
 
Old 09-17-2010, 10:16 AM   #18
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Press ctrl+alt+f2,same black and white scree will appear...
Login as root...
run this command and add this line

visudo

Code:
john  ALL=(ALL)   NOPASSWD: ALL
note replace john with your normal user

now that normal user is in the list of sudoers

after this go to your GUI and login as normal user...

open terminal and run this command

$su -

and give root password ...

do let us know ....
once you login successfully do let us know
 
Old 09-17-2010, 10:17 AM   #19
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by kilgoretrout View Post
Try running:

$ su - root

and see if you can su to root that way.
well thanks for it! I tried it just now using "su root", but it's showing the same error- incorrect password. so what to do?
 
Old 09-17-2010, 10:21 AM   #20
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Quote:
Then i changed the ownership from root to software, so that i don't have to give the password each time.
What file(s) did you change the ownership of? If you run:

$ su
<Enter software's password>

what happens.

Edit: I'm thinking you changed the ownership of whatever terminal application you are using from root to software. Is this correct?

Last edited by kilgoretrout; 09-17-2010 at 10:24 AM.
 
Old 09-17-2010, 10:26 AM   #21
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
Question

Quote:
Originally Posted by prayag_pjs View Post
Press ctrl+alt+f2,same black and white scree will appear...
Login as root...
and give root password ...
do let us know ....
once you login successfully do let us know
ok fine! I gave the code and now i'm in the list of sudoers. But i'm in the same black screen, but how to go back to the GUI? please tell me that also!

Last edited by sattulinux; 09-17-2010 at 10:28 AM.
 
Old 09-17-2010, 10:30 AM   #22
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
hi login as root in CLI and creat new user using

Code:
useradd newuser
password newuser
login as that normal user in GUI and try doing

Code:
su -
 
Old 09-17-2010, 10:32 AM   #23
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by prayag_pjs View Post
hi login as root in CLI and creat new user using
Code:
useradd newuser
password newuser
login as that normal user in GUI and try doing
Code:
su -
Actually i'm still in that black screen and don't know how to come out of that? Please don't mind but since i'm new to linux, so i don't know even these basic things. so, well how to come out of that black screen??
 
Old 09-17-2010, 10:35 AM   #24
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
press ctrl+alt+f7
 
Old 09-17-2010, 10:42 AM   #25
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by sattulinux View Post
hi everyone! I'm using fedora-11. Initially while doing the terminal part it used to come like this- [software@localhost ~]$,,,, then i used to give the password and enter the root. Here my username is software. Then i changed the ownership from root to software, so that i don't have to give the password each time. BUT NOW when i am giving su and entering the password it is showing INCORRECT PASSWORD. I don't know what has happened. Can some one help me please??
Hi sattulinux,

There is special permission on su command.

Code:
# ls -l /bin/su
-rwsr-xr-x 1 root root 23960 Sep  4  2009 /bin/su
check is there SUID permission applied or not if not apply SUID permission.

login root user on terminal
run below command to set SUID permission

Code:
chmod 4755 /bin/su
Hope this help

Regards,
 
1 members found this post helpful.
Old 09-17-2010, 10:47 AM   #26
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by prayag_pjs View Post
press ctrl+alt+f7
thanks. I came back to original screen. But now after going to terminal, when i'm entering the word root, it's showing:
bash: root: command not found
what to do now?
 
Old 09-17-2010, 10:51 AM   #27
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
hi login as root in CLI and creat new user using
Code:
useradd newuser
password newuser
login as that normal user in GUI and try doing
Code:
su -
give root password you should get # prompt
 
Old 09-17-2010, 10:51 AM   #28
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
actually i don't get it! When i went to the black screen and logged in using root, it was successful. But now when i'm using the same thing in normal screen, it is showing "command not found", it's confusing. I don't get it Prayag, what is happening?
 
Old 09-17-2010, 10:56 AM   #29
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
Ok I'm in office and it's already late. I'm leaving now, many many thanx for spending time with me. Will contact you tomorrow as soon as i return. Bye. Gudnight.
 
Old 09-17-2010, 11:09 AM   #30
babunix
Member
 
Registered: Jul 2010
Location: India
Distribution: RHEL, Ubuntu
Posts: 35

Rep: Reputation: Disabled
Quote:
Originally Posted by sattulinux View Post
actually i don't get it! When i went to the black screen and logged in using root, it was successful. But now when i'm using the same thing in normal screen, it is showing "command not found", it's confusing. I don't get it Prayag, what is happening?
I think you have to look post #25 by sem007.

There might be permission issue.
I regenerate issue by removing suid and solution provided by sem007 is works fine.

have a look, that might resolve your issue.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
terminal problem rehan999 Linux - Software 1 03-22-2008 08:26 AM
terminal problem jaspreet85 Linux - General 3 07-20-2005 10:15 AM
Problem with terminal garnelleo Linux - Newbie 3 04-23-2005 06:35 PM
Terminal problem David@330 Linux - Newbie 3 10-12-2004 02:40 AM
qt: terminal problem powadha Slackware 1 12-23-2003 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:55 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
Open Source Consulting | Domain Registration