M*******n 发帖数: 508 | 1 SunOS, the 'chsh' command in linux dosen't work.
who can tell me the corresponding command on UNIX? | O******e 发帖数: 734 | 2 Try passwd -e. See man page.
【在 M*******n 的大作中提到】![](/moin_static193/solenoid/img/up.png) : SunOS, the 'chsh' command in linux dosen't work. : who can tell me the corresponding command on UNIX?
| M*******n 发帖数: 508 | 3 not change passwd, I want to change the shell
Try passwd -e. See man page.
【在 O******e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : Try passwd -e. See man page.
| l******t 发帖数: 108 | 4 your default shell is specified in, usually, /etc/passwd
【在 M*******n 的大作中提到】![](/moin_static193/solenoid/img/up.png) : not change passwd, I want to change the shell : : Try passwd -e. See man page.
| M*******n 发帖数: 508 | 5 that's true, but passwd only changes password, not the shell
【在 l******t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : your default shell is specified in, usually, /etc/passwd
| n******s 发帖数: 7 | 6 It is passwd -e, but it might not work on some systems depending
on the system or network configuration, as described in the man
page.
【在 M*******n 的大作中提到】![](/moin_static193/solenoid/img/up.png) : that's true, but passwd only changes password, not the shell
| F**********e 发帖数: 2135 | 7 sigh, u may need to man passwd first
【在 M*******n 的大作中提到】![](/moin_static193/solenoid/img/up.png) : that's true, but passwd only changes password, not the shell
| q*****g 发帖数: 1568 | 8 Until you undertand why passwd changes not only your password,
but also your login shell, and why you have to use "kill" to send
any innocent signals to one of your precious processes, you can not
say you understand what is so called ....
The UNIX philosophy
hehe.
【在 M*******n 的大作中提到】![](/moin_static193/solenoid/img/up.png) : not change passwd, I want to change the shell : : Try passwd -e. See man page.
| n******s 发帖数: 7 | 9 Not MildSeven's fault. I use the same Solaris network and "passwd -e" doesn't
work here. It turns out we have to use a special user account management
interface to change the shell.
【在 q*****g 的大作中提到】![](/moin_static193/solenoid/img/up.png) : Until you undertand why passwd changes not only your password, : but also your login shell, and why you have to use "kill" to send : any innocent signals to one of your precious processes, you can not : say you understand what is so called .... : The UNIX philosophy : hehe.
| q*****g 发帖数: 1568 | 10 You see, this is yet another "feature" of UNIX: you never get bored
when you migrate from one UNIX to another .... Be prepared to be
surprised, hehe.
【在 n******s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : Not MildSeven's fault. I use the same Solaris network and "passwd -e" doesn't : work here. It turns out we have to use a special user account management : interface to change the shell.
| l******t 发帖数: 108 | 11 haha, in IRIX there's a User Manager. it requires root, but then root
can edit /etc/passwd directly.
Not sure how a normal user could change his/her default shell...
【在 q*****g 的大作中提到】![](/moin_static193/solenoid/img/up.png) : You see, this is yet another "feature" of UNIX: you never get bored : when you migrate from one UNIX to another .... Be prepared to be : surprised, hehe.
| q*****g 发帖数: 1568 | 12 Actually, there is a hack, suppose you don't need X stuff, then
put this line in your .login, or .cshrc, or whatever file that
your default shell loads whenever you login:
if ( -f /bin/bash ) exec /bin/bash --login
If you do want to use X from time to time, you need a bit more
trick. I am not an expert on that, but this line in my .bash_profile
may help you:
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/vc/1 ]; then
startx
fi
Of course, that was meant to automate startx not /bin/bash, but
the idea
【在 l******t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : haha, in IRIX there's a User Manager. it requires root, but then root : can edit /etc/passwd directly. : Not sure how a normal user could change his/her default shell...
| c*****t 发帖数: 1879 | 13 Never ever modify password file directly. Before you knew it, you could
have screwed up the system.
There are other things user could try, like 'chsh', 'ypchsh' etc. At
least, asking system admin is always an option.
【在 l******t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : haha, in IRIX there's a User Manager. it requires root, but then root : can edit /etc/passwd directly. : Not sure how a normal user could change his/her default shell...
|
|