I create user but i cant login the user i created.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers I create user but i cant login the user i created.
# 1  
Old 06-09-2006
Power I create user but i cant login the user i created.

I created a user, i login as a root. I add him in the group where he can access and login as a root! I checked it in users' list and in group's list, he is there. My problem is this, I cant login using the username/account I just created! What should i do to use and login the user/account i've just created?

By the way, i seached the shadow file in /etc but it does not exist, maybe its been deleted!
# 2  
Old 06-09-2006
Well, first of all, how do you created the user? Did you use useradd or edit the passwd and shadow?. Which Unix are you working on?

Those information would help a lot !

Thanks
# 3  
Old 06-09-2006
I created user using adduser command. I did not edit passwd, and shadow had been deleted by someone when i add that user (maybe he deleted it for some reason, i dont know why or maybe he change its location. As far as I know shadow only on /etc directory).

Im working FreeBSD 4.4 Release/i386.
# 4  
Old 06-09-2006
BSD uses, as Linux, shadow passwords but the shadow file is not in /etc/shadow, instead you can find it in /etc/master.passwd.
if you dont have that file I believe your system is corrupted.

Other thing you can try is the home directory of the user, sometimes if that directory doesnt exist, the user cannot login to the system properly.
# 5  
Old 06-09-2006
Quote:
Originally Posted by piltrafa
BSD uses, as Linux, shadow passwords but the shadow file is not in /etc/shadow, instead you can find it in /etc/master.passwd.
if you dont have that file I believe your system is corrupted.

Other thing you can try is the home directory of the user, sometimes if that directory doesnt exist, the user cannot login to the system properly.
Yeah it msg "nonexistent no such file or directory"! What must i do?

Im really sorry, coz maybe its just a idiot question for you but for me its a big big question mark! Thats reflect that im really ignorant that want to learn unix/BSD/Linux!

Thanks!
# 6  
Old 06-09-2006
the passwd file is sym linked to another location. Since I am not familuar with BSD, you will need to search for the exact location of the original file.

do a man on find and you will see an example to search for a particular file.

HiH.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Prevent user from creating new user from his login

Hi Experts, Need your support Redhat 6.5 I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies

2. 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

3. Shell Programming and Scripting

Login into another user from user inside script

now i have logged in username : ramesh in unix Now i have to created script file to login into another user and have run a command inside that user and after executing the command i have to exit from that user. Inside script, i have to login into su - ram along with password : haihow and have to... (4 Replies)
Discussion started by: rammm
4 Replies

4. Shell Programming and Scripting

How to Login as another user through Shell script from current user[Not Root]

Hi Every body, I would need a shell script program to login as different user and perform some copy commands in the script. example: Supppose ora_toms is the active user ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands ... (9 Replies)
Discussion started by: ujjwal27
9 Replies

5. Ubuntu

Create New User with the same group nd privileges of the other user

Hi, Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01". I want both in the sames privileges and group. Please see the existing users list below; drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies

6. UNIX for Dummies Questions & Answers

how to know what time one user was created?

I am using RHEL. I wan to know the creation time of one user? which command? (4 Replies)
Discussion started by: cqlouis
4 Replies

7. Solaris

error message rmclomv ... SC Login Failure for user Please login:

Hello World ~ HW : SUN Fire V240 OS : Solaris 8 Error message prompts 'rmclomv ... SC login failure ...' on terminal. and Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S) The System is in normal operation, though In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies

8. Shell Programming and Scripting

Running script from other user rather than login user

Hi, My requirement is that i am login from ROOT in a script but when any command is coming which is logging to sqlplus then i have to run it with normal user as only normal user have permission to connect to sqlplus . i tried making a script like this : #! /bin/ksh su -... (3 Replies)
Discussion started by: rawatds
3 Replies

9. UNIX for Dummies Questions & Answers

Files created by particular user

How i get the all the files created by particular user?? (2 Replies)
Discussion started by: Anshu
2 Replies

10. UNIX for Advanced & Expert Users

Other than root user .Normal user is unable to create files

Hi all, I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies
Login or Register to Ask a Question