Root user doest not exist


 
Thread Tools Search this Thread
Operating Systems Linux Root user doest not exist
# 1  
Old 10-31-2008
MySQL Root user doest not exist

Hi All,

I changed the root user home directory to /home/root for some testing purpose, afterwards the logged user name its showing "I have no name" instead of root and also when we want to su to root its giving root user doesnot exist, so I tried to add the root user then its giving root user exists. I checked the passwd and shadow file they are fine. I started the gdm-restart, gdm-safe-restart and configured /etc/X11/gdm/gdm.conf file also. Am able to login in single user mode but no other run levels.

So, please give me some solutions.

Regards
Shashidhar.B
# 2  
Old 10-31-2008
What's the output of grep root /etc/passwd /etc/shadow | cat -vet?

What method did you use to change root's home directory?
# 3  
Old 10-31-2008
usermod -d /home/root root
by using this I changed root user home directory. in passwd and shadow file details of root user is showing everything fine like user name, group name, uid, gid, etc.. and it showed home dir as /home/root. after that I changed the root home dir to /root by using usermod -d /root root. After this when I check passwd and shadow files in those root's home dir is /root only. I tried with replacing passwd file with passwd- file also but its not working.
# 4  
Old 10-31-2008
you did not add as again you have assign the /root directory or not if you didn't then assign it.

or check the /etc/nsswitch.conf it should be something like this:

# Example:
#passwd: files nisplus nis
#shadow: files nisplus nis
#group: files nisplus nis

passwd: files
shadow: files
group: files

#hosts: db nis files nisplus nis dns
hosts: files dns

if you did change then allow it to look for local files
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find if a User exist if not create user

What I'm trying to do is write a script in Perl to find a user and if that user exist it would print "User Exist, Pls Try Again". If The user doesn't exist I'm able to create a user with a password. Any suggestions? (3 Replies)
Discussion started by: GoBoyGo
3 Replies

2. Shell Programming and Scripting

How to give root access to non root user?

Currently in my system Red Hat is installed. And Many user connect to my machine via SSH Techia Terminal. I want to give some users a root level access. Can anyone please help me how to make it possible. I too searched on the Google but didn't find the correct way Regards ADI (4 Replies)
Discussion started by: adisky123
4 Replies

3. UNIX for Advanced & Expert Users

Root and non-root user not able to delete the file

Hi!! one strange problem occurred with my RHEL 5 box. i'm having logs folder with ownership of non-root user. Created some files with root user under logs folder. here is the scene: -rw-r----- 1 root root 1048227 Feb 28 12:34 SystemOut_13.02.28_12.34.10.log -rw-r----- 1 root root ... (6 Replies)
Discussion started by: sukhdip
6 Replies

4. Linux

Sendmail has these errors--Domain of sender address <root@time.com> does not exist

Does anyone has a clue of what is going on here? It was working few days ago. /etc/hosts looks ok, sendmail does restart without any errors, telnet is successful. I will be happy to send you guys any output required. Diagnostic-Code: SMTP; 553 #5.1.8 Domain of sender address... (1 Reply)
Discussion started by: lovesaikrishna
1 Replies

5. Solaris

User directory doesn't exist

Hii all, i create the user useradd -d /home/kk kk passwd kk when i tried to login to kk i get a error user directory doesn't exist then i tried useradd kkk passwd kkkwhen i tried to login to kkk i get the same error user directory doesn't exist. (4 Replies)
Discussion started by: vipinkumarr89
4 Replies

6. UNIX for Dummies Questions & Answers

Sudo to delegate permission from non-root user to another non-root user

I've been through many threads before i decide to create a separate thread. I can't really find the solution to my (simple) problem. Here's what I'm trying to achieve: As "canar" user I want to run a command, let's say "/opt/ocaml/bin/ocaml" as "duck" user. The only to achieve this is to... (1 Reply)
Discussion started by: canar
1 Replies

7. UNIX for Dummies Questions & Answers

How to allow access to some commands having root privleges to be run bu non root user

hi i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies

8. Red Hat

error"warning: user owen does not exist - using root"?

I am trying to install openmotif22-2.2.3-18.src.rpm, after I typed in " rpm -i openmotif22-2.2.3-18.src.rpm" the following message comes out: warning: user owen does not exist - using root warning: group owen does not exist - using root I am install openmotif under root account. Do... (2 Replies)
Discussion started by: fishwater00
2 Replies

9. UNIX for Dummies Questions & Answers

su: user x does not exist

somehow my user names and groups on one of our machines are changed to numbers 700, 701, etc. thus, i can only ssh into this machine as root. is there a way to migrate the user names and groups to this machine? thanks! (3 Replies)
Discussion started by: user23
3 Replies

10. UNIX for Advanced & Expert Users

Validate if user and group exist

I'm kinda new to unix programming so bear with me... I'm running a script prompting a user for an existing user and group and want to be able to validate if they valid. Is there any code available? Any help or push in the right direction would help. Thank you, (2 Replies)
Discussion started by: thedon
2 Replies
Login or Register to Ask a Question