Re: i cannot login as root

2010-06-17 Thread Malcolm Kay
On Tue, 15 Jun 2010 09:56 pm, Glen Barber wrote:
 Hi,

 On 6/15/10 7:15 AM, Giorgos Tsiapaliokas wrote:
  hello,
 
  my system has 2 users the user terietor and the root user.
 
  after a failed upgrade of my system with portmaster,i can't
  login as root but i can login as terietor.
  root was using the csh shell and terietor was using the bash
  shell.

 Are you sure you don't have this backwards?

 portmaster should not touch /bin/csh, since it is not a port -

Are you sure about this.
On my release 8.0 system I find 'portmaster' in the ports but not 
in the base system!

Malcolm

 it is part of the base system.  However, if root's shell is
 set to bash and portmaster blew up upgrading that port, this
 would prevent you from logging in as root, and is a good
 example of why not to change root's default shell to something
 not in the base install.

 If this is the case, and you have physical access to the
 machine, drop into single-user mode and use chsh(1) to reset
 root's shell to /bin/csh.

 Regards,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i cannot login as root

2010-06-17 Thread Olivier Nicole
 On my release 8.0 system I find 'portmaster' in the ports but not 
 in the base system!

csh is base system
portmaster is a port

portmaster is in charge of managing ports
portmaster manages portmaster
portmaster does not manage csh

Bests,

olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i cannot login as root

2010-06-17 Thread Malcolm Kay
On Thu, 17 Jun 2010 04:18 pm, Olivier Nicole wrote:
  On my release 8.0 system I find 'portmaster' in the ports
  but not in the base system!

 csh is base system
 portmaster is a port

Yes of course!
Sorry, I must have read Glen's post rather carelessly.

With apology,

Malcolm

 portmaster is in charge of managing ports
 portmaster manages portmaster
 portmaster does not manage csh

 Bests,

 olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


i cannot login as root

2010-06-15 Thread Giorgos Tsiapaliokas
hello,

my system has 2 users the user terietor and the root user.

after a failed upgrade of my system with portmaster,i can't login as root
but i can login as terietor.
root was using the csh shell and terietor was using the bash shell.

P.S.:when i login as terietor i see this symbol %# instead of
u...@localhost:~/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i cannot login as root

2010-06-15 Thread Glen Barber

Hi,

On 6/15/10 7:15 AM, Giorgos Tsiapaliokas wrote:

hello,

my system has 2 users the user terietor and the root user.

after a failed upgrade of my system with portmaster,i can't login as root
but i can login as terietor.
root was using the csh shell and terietor was using the bash shell.



Are you sure you don't have this backwards?

portmaster should not touch /bin/csh, since it is not a port - it is 
part of the base system.  However, if root's shell is set to bash and 
portmaster blew up upgrading that port, this would prevent you from 
logging in as root, and is a good example of why not to change root's 
default shell to something not in the base install.


If this is the case, and you have physical access to the machine, drop 
into single-user mode and use chsh(1) to reset root's shell to /bin/csh.


Regards,

--
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i cannot login as root

2010-06-15 Thread Neal Hogan
On Tue, Jun 15, 2010 at 7:32 AM, Giorgos Tsiapaliokas
terie...@gmail.com wrote:
 i can't :(

 it says that is is only read-only enviroment..

use the world wide web, and look for an answer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: i cannot login as root

2010-06-15 Thread Bas Smeelen
On 06/15/2010 02:29 PM, Giorgos Tsiapaliokas wrote:
 my root acc is using csh.

 i tried via singel user mode to change it but it said that it is a read-only
 enviroment.:(

   
Did you try mount -o rw / to remount your / (root) partition read write?
If you where using portmaster to update/upgrade your ports this should
not affect root's csh or csh at all, though.

Also when you have remounted your / partition read write in single user
mode you can use vipw to make sure root's shell is /bin/csh or change
this if it's not the case.

What error do you get, when you try to login as root in multi user mode?

A websearch on recover freebsd root password might help also

Good luck.


DISCLAIMER:
This e-mail is for the intended recipient(s) only.
Access, disclosure, copying, distribution or reliance on any of it by anyone 
else is prohibited.
If you have received it by mistake please let us know by reply and then delete 
it from your system.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org