由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - how to change the log in shell?
相关主题
急!!!!how can I change csh to tcsh or bash
hotkey in unix.cshrc?.login?.profile?
请各位补充一下现有的操作系统how to change login shell?
如何让UNIX的机器和WINDOWS XP的机器之间实现共享?为什么普通用户无法登陆?
"#! /bin/csh" != "#!/bin/csh" ??????Change shell to tcsh?
bad root shell?lost root account
Korn shell script怎么从BASH 换到 CSH
questionlogin shell and normal shell?
相关话题的讨论汇总
话题: shell话题: passwd话题: change话题: unix话题: log
进入Unix版参与讨论
1 (共1页)
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 的大作中提到】
: 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 的大作中提到】
: Try passwd -e. See man page.
l******t
发帖数: 108
4
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.

M*******n
发帖数: 508
5
that's true, but passwd only changes password, not the shell

【在 l******t 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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...

1 (共1页)
进入Unix版参与讨论
相关主题
login shell and normal shell?"#! /bin/csh" != "#!/bin/csh" ??????
How to find a file in the deep children directory?bad root shell?
UNIX dummy Questions?Korn shell script
HELP!! (CXTERM)question
急!!!!how can I change csh to tcsh or bash
hotkey in unix.cshrc?.login?.profile?
请各位补充一下现有的操作系统how to change login shell?
如何让UNIX的机器和WINDOWS XP的机器之间实现共享?为什么普通用户无法登陆?
相关话题的讨论汇总
话题: shell话题: passwd话题: change话题: unix话题: log