01-02-2014
Could you set the login shell to /bin/false so that a login is ineffective, be that with telnet or SSH?
Robin
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
My goal is to use FTP to transfer file between PC and SCO Unix server.When I try to connect via FTP with root user, it failed.
What should I do? How to configure ftpaccess?
Thanks in advance! (2 Replies)
Discussion started by: Vladan
2 Replies
2. Linux
hi ,
i have jsut installed linux 9.0 , but i can not ftp or telnet to the system .
i have installed the ftp and the telnet server during installation .
i have also configured the files to enable the ftp and telnet , the ftp and the telnet daemons are running , but when i do ftp :
ftp... (1 Reply)
Discussion started by: ppass
1 Replies
3. Solaris
Hi,
I have turn off the FTP service and rebooted the server .
(edit /etc/inetd.conf and /etc/inet/services)
Now , how can I enable back the FTP without rebooting the server .
Thanks (1 Reply)
Discussion started by: civic2005
1 Replies
4. Cybersecurity
Hi all,
I am trying to enable samba access to administrator. I have added the user, but i am not able to login as administrator. But for other users i am able to login. Can anyone help me out in fixing this.
Thank You in advance. (1 Reply)
Discussion started by: kymthasneem
1 Replies
5. UNIX for Dummies Questions & Answers
hi
i am not able to the zones after i enable BSM, but i am able to login using "zlogin -S" option.
is there any command which i can use to troubleshoot.
thanks a lot! :cool: (0 Replies)
Discussion started by: legato
0 Replies
6. Solaris
Dear Frnz
I have a solaris box with running 5.8
My default window manager is CDE.When i login as a normal user and try to open console it is vanishing quickly.
When i check the logs the message is
Wed Nov 21 19:27:03 2007 (/usr/dt/bin/dtexec) /usr/dt/bin/dtterm
/dev/console: Permission... (1 Reply)
Discussion started by: sriram.s
1 Replies
7. Linux
hi
iam installed mandriva spring 2009
iam unble to login into gui using root
how to enable it
where the settings are stored (5 Replies)
Discussion started by: seshumohan
5 Replies
8. HP-UX
hi everybody,
I can easily enable /disable the FTP service from SAM, how can I do this via command line? using inetd? how?
cheers,
messi (1 Reply)
Discussion started by: messi777
1 Replies
9. HP-UX
Hi Experts,
Need your help in enabling the ftp port in HP-UX box.
Is there any command/config file that needs to be changed?
Also is it possible to open it only for few selected IPs only? (9 Replies)
Discussion started by: sai_2507
9 Replies
10. Forum Support Area for Unregistered Users & Account Problems
Hello
Myself Ravi, ex-member of your forum.
I would request if my ID can be enabled which got disabled a few months back.
That time our mood may be that that you had taken the step but I think it shouldn't be hard for you to accept my request to enable it again.
My email is mentioned in my... (1 Reply)
Discussion started by: Unregistered
1 Replies
CHSH(1) User Commands CHSH(1)
NAME
chsh - change login shell
SYNOPSIS
chsh [options] [LOGIN]
DESCRIPTION
The chsh command changes the user login shell. This determines the name of the user's initial login command. A normal user may only change
the login shell for her own account; the superuser may change the login shell for any account.
OPTIONS
The options which apply to the chsh command are:
-h, --help
Display help message and exit.
-R, --root CHROOT_DIR
Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
-s, --shell SHELL
The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
If the -s option is not selected, chsh operates in an interactive fashion, prompting the user with the current login shell. Enter the new
value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of [ ] marks.
NOTE
The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser,
and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh
in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell
back to its original value.
FILES
/etc/passwd
User account information.
/etc/shells
List of valid login shells.
/etc/login.defs
Shadow password suite configuration.
SEE ALSO
chfn(1), login.defs(5), passwd(5).
shadow-utils 4.5 01/25/2018 CHSH(1)