The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Unable to su -
Author: Hamed Majnoonian 
Date:   07-06-05 08:47

Hi all!

I tried to log in my system with my ID which is member of wheel... then I tried to su - as awlays ... but I found this message:

su: /usr/local/bin/born: No such file or directory


Can anybody help?



Cheers



Reply To This Message
 
 Re: Unable to su -
Author: Dan 
Date:   07-06-05 12:10

- /usr/local/bin/born

It sounds like that's the shell that has been set for root.

Please paste us exactly what happens.

--
Webmaster

Reply To This Message
 
 Re: Unable to su -
Author: Hamed Majnoonian 
Date:   07-06-05 13:03

#################################################
login as: sharpknifeedge
Using keyboard-interactive authentication.
Password:
Last login: Tue Jun 7 12:53:53 2005 from 217.174.18.137
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.

FreeBSD 4.11-STABLE (Bulldog) #3: Sat Jan 22 13:40:10 GMT 2005


Time to change your password? Type "passwd" and follow the prompts.
-- Dru <genesis@istar.ca>
$ su -
Password:
su: /usr/local/bin/born: No such file or directory
$
#################################################

Above is the exact messages!
My ID which is "sharpknifeedge" is the member of "wheel" and I was working with the system 30 minutes before this happens!
Also nobody has the access to the system to change anything!

Thanx

Reply To This Message
 
 Re: Unable to su -
Author: Dan 
Date:   07-06-05 13:27

grep born /etc/password

I bet you find that the shell for root is 'born'.

--
Webmaster

Reply To This Message
 
 Re: Unable to su -
Author: Hamed Majnoonian 
Date:   07-06-05 13:42

Yes it is! in passwd. How can change it? And to what should be changed ?

Reply To This Message
 
 Re: Unable to su -
Author: Hamed Majnoonian 
Date:   07-06-05 13:47

Yes! It is ... how can I change it to /bin/csh?


thanx

Reply To This Message
 
 Re: Unable to su -
Author: Dan 
Date:   07-06-05 13:50

You can do this in single user mode. You must be at the console in order to do this. You cannot do this via ssh.

Since su is not working, what you can do is press "control alt delete" at the console. This will shutdown down the box and reboot it. During the reboot process, go into single user mode, and then issue the vipw command and alter the shell to /bin/csh

For more details about single user mode, read the handbook.

NOTE: this is an excellent example of why you should not change the shell for root. You can always invoke your favourite shell AFTER becoming root.

--
Webmaster

Reply To This Message
 
 Re: Unable to su -
Author: Hamed Majnoonian 
Date:   07-06-05 14:22

Unfortunately I can't find vipw on my machine. I am in single user mode there is no vipw in "/usr/sbin/vipw" or "/usr/src/usr.bin/vipw" since I found this file on other machines I have. But there is no intance of this on my machine!

What should I do Dan?


Thank you

Reply To This Message
 
 Re: Unable to su -
Author: Dan 
Date:   07-06-05 14:29

Hamed Majnoonian wrote:

> Unfortunately I can't find vipw on my machine. I am in single
> user mode there is no vipw in "/usr/sbin/vipw" or
> "/usr/src/usr.bin/vipw" since I found this file on other
> machines I have. But there is no intance of this on my machine!
>
> What should I do Dan?

Read. ;)

/usr/sbin/vipw is what you need.

Perhaps you need to issue 'mount -a' in order to get your directories mounted.

--
Webmaster

Reply To This Message
 
 Re: Unable to su -
Author: Hamed Majnoonian 
Date:   07-06-05 14:50

Thank you Dan! it's done! Thanx for your help! I should read more ;)

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org