06-19-2015
Quote:
Originally Posted by
HeyMoe
There's the problem. I need to put that in the /etc/shells file. Which isn't there.
Do you?
That would
permit people to login with /bin/false, which would do nothing and instantly quit, but be a login nonetheless.
Without it, they will
fail to login as /bin/false. Tomato, tomahto.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everybody !
How can I configure the ftp in solaris systems ? Wich files ?
To resume : I want to create a user wich can get from a ftp session running from a PC, some files without going up in the directories. If I attached the ksh or sh shell to the user, he can go wherever he wants. If I... (7 Replies)
Discussion started by: MarcoW
7 Replies
2. UNIX for Dummies Questions & Answers
I need to know what commands I will need to use to change a host name, IP Address, and network configurations (routerings, dns, etc) and a Unix SCO machine.
Also, if there is any short tutorials on using the commands, i would defiently like that information.
Thanks!!! (1 Reply)
Discussion started by: HandleX
1 Replies
3. Linux
Hi all, .... I have major errors on entering the shell. On login I get:
-bash: dircolors: command not found
-bash: tr: command not found
-bash: fgrep: command not found
-bash: grep: command not found
-bash: grep: command not found
-bash: id: command not found
-bash: #
root@host # pwd... (0 Replies)
Discussion started by: wcmmlynn
0 Replies
4. Solaris
Hi all
I need basic help to configure/check an FTP account on Solaris 9 (5.9) (by shell)
with man ftp I'm not really able to configure that. On google or doc.sun.com I cant find a basic understanding of configuration an ftp server. Where are the files / setupfile.
does somebody helps me with... (5 Replies)
Discussion started by: actino
5 Replies
5. UNIX for Advanced & Expert Users
Hello - I am FTPing file from remote unix box to my unix box.
I am FTPing file around 2AM. some time, the complete fle is not ftping.. I am missing data in the FTP file. It happens few times in a month. Whenever, i miss the data, the file size is always 60106. The actual file size is not that... (4 Replies)
Discussion started by: govindts
4 Replies
6. Web Development
hi,
I'm connecting to a web server with ftp protocol and I would like to change some folders and files owner. I tried chown but it is not available.
I typed "help" and this is the list I got. Is possible that the chown command is not installed on the server ? Or I don't have permissions ?... (8 Replies)
Discussion started by: aneuryzma
8 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am new to unix , I was planning to write a script that will FTP files to destination folder. , Please guide me what are the various networking commands that unix will help in this ftp process..?:confused: (1 Reply)
Discussion started by: rahul125
1 Replies
8. IP Networking
Hi,
I have been a unix box testing machine and I access to it through putty with my creditials now I have an sftp script to transfer files from that machine to some other ftp server but recently I come to know that due to some reason ftp server is not ready so I have to make my current machine... (0 Replies)
Discussion started by: rahul125
0 Replies
9. Solaris
hi,
I am using Solaris 10, actually i want to restrict user to access upper level directory while using ftp, means when user access a folder using ftp he has no access to go to base directory.
If i am not wrong ftp configuration file use in solaris 10 is /etc/ftpd/ftpaccess kindly confirm,
I... (1 Reply)
Discussion started by: zeeshan047
1 Replies
10. IP Networking
hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command..
thanks very much, (3 Replies)
Discussion started by: Little
3 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)