The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to create a user in HP-UX Harikrishna HP-UX 3 02-08-2008 06:31 AM
Find all files created by a specified user in a directory and its subdirectories abhilashnair UNIX for Dummies Questions & Answers 5 06-12-2007 11:37 PM
Running script from other user rather than login user rawatds Shell Programming and Scripting 2 08-25-2006 12:51 AM
Files created by particular user Anshu UNIX for Dummies Questions & Answers 2 06-13-2006 05:12 AM
Other than root user .Normal user is unable to create files mallesh UNIX for Advanced & Expert Users 1 06-22-2005 09:18 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-08-2006
Registered User
 

Join Date: Jun 2006
Posts: 7
Stumble this Post!
Red face 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!
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-09-2006
piltrafa's Avatar
Registered User
 

Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 76
Stumble this Post!
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
Reply With Quote
  #3 (permalink)  
Old 06-09-2006
Registered User
 

Join Date: Jun 2006
Posts: 7
Stumble this Post!
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.
Reply With Quote
  #4 (permalink)  
Old 06-09-2006
piltrafa's Avatar
Registered User
 

Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 76
Stumble this Post!
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.
Reply With Quote
  #5 (permalink)  
Old 06-09-2006
Registered User
 

Join Date: Jun 2006
Posts: 7
Stumble this Post!
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!
Reply With Quote
  #6 (permalink)  
Old 06-09-2006
Registered User
 

Join Date: Sep 2005
Posts: 43
Stumble this Post!
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0