9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell.
So serverA launches the ssh command to serverB which has a local user with my script as a login shell.
Local script works like a charm on his own.
serverB$ grep... (20 Replies)
Discussion started by: maverick72
20 Replies
2. HP-UX
According to multiple sources you should not change the default shell to bash for the root user because it will make the system unbootable.
Is there a safe way to launch bash for root when logging in? Perhaps I can edit /etc/profile or add it to a startup script somewhere? (2 Replies)
Discussion started by: bstring
2 Replies
3. Post Here to Contact Site Administrators and Moderators
Dear Administrators!
I would like to change my username for this forum, would it be possible?
Regards
FR (1 Reply)
Discussion started by: fretagi
1 Replies
4. Shell Programming and Scripting
Hi frnds!
i m installing a software named 'Gamit' by using bash.
bt i recieved the follwoing error:
.. removing any existing Makefiles or archive files from libraries directories
/root/Documents/ISP/Gamit_10.4/com/rmfresh: Permission denied.
.. removing any existing Makefiles or... (1 Reply)
Discussion started by: Engr. Shoaib
1 Replies
5. HP-UX
I want to change the default login directory of a user from /home/user to a new directory. how can i do this?
thanks in advance....:) (1 Reply)
Discussion started by: smahe23
1 Replies
6. Shell Programming and Scripting
I am new to UNIX hence the question. Most of the time when I have an environment set up for me to develop my systems, I have had my ID logon and I can edit the .profile for my account and it understand commands korn shell. It seems this machine, a new SUN machine, was setup with users getting the... (3 Replies)
Discussion started by: klarue7
3 Replies
7. OS X (Apple)
I bought a used MacBook G4 with Tiger 10.4.11
Running fine, then I noticed a few things were missing.
I don't have Terminal or Netinfo Manager in my Utilities!
I downloaded iTerm, but for some reason my shell is set to /dev/null
I know I can change my shell using Netinfo Manager, but I don't... (5 Replies)
Discussion started by: Ricardo-san
5 Replies
8. HP-UX
Hello Everyone,
I am a newbie in unix. I was practicing shell scripts on hp unix machine.
I changed my current login shell (Korn) to Bourne shell giving the following command.
$ chsh username /usr/bash
I am using secure shell client for accessing the hp ux server.
After which i... (4 Replies)
Discussion started by: hardesh
4 Replies
9. UNIX for Dummies Questions & Answers
Hi...
Can anyone help! I am in dire need to change the "login:" prompt to "username:" any ideas?
Thanks in advance :) (6 Replies)
Discussion started by: juilan
6 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)