avatar
M*n
2
SunOS, the 'chsh' command in linux dosen't work.
who can tell me the corresponding command on UNIX?
avatar
k*o
3
我用web,我觉得term才落后吧
avatar
O*e
4
Try passwd -e. See man page.

【在 M*******n 的大作中提到】
: SunOS, the 'chsh' command in linux dosen't work.
: who can tell me the corresponding command on UNIX?

avatar
b*t
5
还是学会term吧

【在 S*******l 的大作中提到】
: 不用Term是不是看不很落后?不影响功能阿。。。
avatar
M*n
6
not change passwd, I want to change the shell

Try passwd -e. See man page.

【在 O******e 的大作中提到】
: Try passwd -e. See man page.
avatar
l*t
7
your default shell is specified in, usually, /etc/passwd

【在 M*******n 的大作中提到】
: not change passwd, I want to change the shell
:
: Try passwd -e. See man page.

avatar
M*n
8
that's true, but passwd only changes password, not the shell

【在 l******t 的大作中提到】
: your default shell is specified in, usually, /etc/passwd
avatar
n*s
9
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 的大作中提到】
: that's true, but passwd only changes password, not the shell
avatar
F*e
10
sigh, u may need to man passwd first

【在 M*******n 的大作中提到】
: that's true, but passwd only changes password, not the shell
avatar
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 的大作中提到】
: not change passwd, I want to change the shell
:
: Try passwd -e. See man page.

avatar
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 的大作中提到】
: 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.

avatar
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 的大作中提到】
: 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.

avatar
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 的大作中提到】
: 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.

avatar
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 的大作中提到】
: 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...

avatar
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 的大作中提到】
: 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...

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。