10-17-2003
Thanks. I attempted the same thing using my login id and it came back with the message that "xxx is a directory", but when I logged as root it worked fine.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how do i set the system date and time? i know i have to be root to do it but i'm new to unix--really new--and some of this stuff seems really cryptic. thanks for any help.:confused: (2 Replies)
Discussion started by: singlefin
2 Replies
2. UNIX for Dummies Questions & Answers
Please lemme know how & where to set the session time for ftp connection in Wu-ftp .
Regards
Gambhi. (5 Replies)
Discussion started by: gambhi_s
5 Replies
3. UNIX for Dummies Questions & Answers
Tru64 (4.0D)
How to change the time zone setting for the system?
Sanjay (5 Replies)
Discussion started by: sanjay_g
5 Replies
4. UNIX for Dummies Questions & Answers
Hi Guru's,
How do I find and set the login idle time setting in HP-UX 32?
Thanks in advance,
Mani (1 Reply)
Discussion started by: jvmani
1 Replies
5. UNIX for Dummies Questions & Answers
I am trying to change the time on a Sun Solaris System, but I am having some difficulties. I thought by accessing the clock icon in the CDE would allow me to change the time. Also when I clicked the help icon I still could not fine any information. (1 Reply)
Discussion started by: wmosley2
1 Replies
6. Solaris
Good day to you all.
I have a server (running on SunOS 5.8) that i always got into via telnet. I have eventually decided to block telnet access to it and instead look toward using SSH. The problem is, whne i establish the SSH connection via PuTTy, i get the "Log in as" prompt, but upon... (5 Replies)
Discussion started by: de049
5 Replies
7. Linux
I have a cron job scheduled to run every 5 mins, and run a php script.
Something was not right about the script and when I checked the server had very little spare memory.
Looked in running processes and I could see that many instances of the script were still running.
I am new to this whole... (1 Reply)
Discussion started by: edzillion
1 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
I wish to set the time and date of the system from my application. (I write code in C ).
How can it be done?
I found the function stime() - but it gets time in seconds as a parameter, and I don't know how to convert my time & date to seconds since EPOCH.
What's the best... (0 Replies)
Discussion started by: klafte
0 Replies
9. Solaris
Hi all,
Any idea please how to:
-Change Time format from 24h format to 12h format (AM and PM)
-Turn off DST: Daylight Save Time
on a Solaris10 server
Thanks in advance (1 Reply)
Discussion started by: rafikrafik09
1 Replies
10. Shell Programming and Scripting
Dear all,
I wonder if it is possible that we can run the script
from time to time..I meant, it should repeat the
sourcing of the script by itself? In my case, I need
to source this script manually from time to time,
like once in every 10 minutes.
emily, (2 Replies)
Discussion started by: emily
2 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)