M*n
2 楼
SunOS, the 'chsh' command in linux dosen't work.
who can tell me the corresponding command on UNIX?
who can tell me the corresponding command on UNIX?
k*o
3 楼
我用web,我觉得term才落后吧
q*g
11 楼
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.
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
12 楼
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.
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
13 楼
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.
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
14 楼
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.
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
15 楼
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...
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
16 楼
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...
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...
相关阅读
Unix跟Linux比到底有啥好?Need help: Apache 2 problem, Solaris 10如何对文件里的数字进行增减?有没有人装过DragonFly BSD???”如何数文件个数“的帖子是不是回答错了? (转载)问个SHELL SCIPT的问题转载: Learn 10 good UNIX usage habitsksh 问题Solaris 8系统求助Classpath setting questionhelp on replacing text in a file (转载)问一个关于批处理的问题,谢了!还是只认3.6G内存,大虾分析一下把 (转载)每天用电脑超4小时的朋友必看请问怎么修改所有文件里面的字符串如何在linux 启动时自动执行 xinetd?shell script question如何删除损坏的文档?UNIX下面如何记录一个文件被谁下载过?unix界面里backspace键不能用, 该怎么办? (转载)