11-02-2005
forcing users to su
Is there a way in solaris 9 to prevent a user to login via ssh, telnet, rlogin, and only be able to su as that user, for example
have DBA joe blow login as jblow, and then su to oracle
BUT
not vice versa
have DBA joe blow login as oralce
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
ENV: linux Version: Mandrake 8.1, PCMCIA card: longshine lcs-8534TB.
(supported according the PCMCIA docs)
laptop is P-II lifetec
/etc/sysconfig/pcmcia:
PCMCIA=yes
PCIC=i82365 ( found via probe -m )
PCIC_OPTS="cs_irq=11 pci_irq_list=11,11 do_scan=0" ( you see i want to force irq 11 )... (3 Replies)
Discussion started by: progressdll
3 Replies
2. UNIX for Advanced & Expert Users
This is for 3 os's, AIX, Solaris, and AIX, didnt want to post three seperate times on the same subject, anyways, I want to force the user MQM to su, i.e. not be able to rlogin/telnet to the box as user MQM, only login as there ID(chris for example) and su to MQM, does anyone know how to do this,... (4 Replies)
Discussion started by: csaunders
4 Replies
3. Solaris
Hi, how do I go about forcing users to change their password every, say, 30 days?
Aaron (1 Reply)
Discussion started by: amheck
1 Replies
4. UNIX for Dummies Questions & Answers
Is there A way I can Force a makefile to ignore errors? i believe it is using gcc.
i have a set of commands in the makefile that i want to run and each time the makefile gets to the point of this commands, it aborts because of the commands.
how can i get the makefile to keep running... (3 Replies)
Discussion started by: SkySmart
3 Replies
5. UNIX for Dummies Questions & Answers
Here is an observation that has started to riddle me and perhaps someone can enlighten me. When a web page (or desktop page for that matter) uses the standard font, it is not anti-aliased, unless the user opts in to do so via the desktop settings.
It appears however that fonts are not... (0 Replies)
Discussion started by: figaro
0 Replies
6. Red Hat
Hello,
Is there a way to force a kernel panic in RHEL 5.4 in such a way that
the machine reboots after the panic.
Thanks,
Kanna (1 Reply)
Discussion started by: kanna_geekworkz
1 Replies
7. UNIX for Dummies Questions & Answers
Dear all,
I am using Mac OSX, have been successfully written an awk script during the last days. I use the script to convert parts of a .dot-file into graphml code.
First question: Backslash
My .dot-code includes repeatedly the sign "\n".
I would like to search for this sign and substitute... (4 Replies)
Discussion started by: ingli
4 Replies
8. Shell Programming and Scripting
I have a master host I want to use to issue some start/stop of LDAP services.
I changed the client hosts /etc/sudoers to have
Defaults:infra !requiretty
The master host kicks off the jobs using the infra account doing a ssh session to the infra account on the clients.
#!/bin/ksh
ps -fu... (5 Replies)
Discussion started by: J-Man
5 Replies
9. Hardware
Linux seems to have weird USB power saving features, my Kindle 3 only gets some charge before Linux powers down the USB port.
When the device is mounted, it doesn't get enough power, with this same hardware under Windows I don't get the message on the Kindle "currently your kindle is not... (2 Replies)
Discussion started by: John Tate
2 Replies
10. Programming
Hello, I am writing a program which runs with root privileges, and it creates a child with lowered privileges and has to redirect it's stdout and stderr to a file and then run bash.
The problem is, whenever I read this file, I want to see all of the current output, even when the program is still... (10 Replies)
Discussion started by: madd-games
10 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)