Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #675
Difficulty: Easy
Wi-Fi is generally less vulnerable to hacker attacks than wired networks.
True or False?
Linux & Unix Commands - Search Man Pages

su(1) [bsd man page]

SU(1)							      General Commands Manual							     SU(1)

su - substitute user id temporarily SYNOPSIS
su [ -f ] [ - ] [ userid ] DESCRIPTION
Su demands the password of the specified userid, and if it is given, changes to that userid and invokes the Shell sh(1) or csh(1) without changing the current directory. The user environment is unchanged except for HOME and SHELL, which are taken from the password file for the user being substituted (see environ(7)). The new user ID stays in force until the Shell exits. If no userid is specified, ``root'' is assumed. Only users in the ``wheel'' group (group 0) can su to ``root'', even with the root pass- word. To remind the super-user of his responsibilities, the Shell substitutes `#' for its usual prompt. The -f option prevents csh(1) from executing the .cshrc file; thus making su start up faster. The - option simulates a full login. SEE ALSO
sh(1), csh(1) 3rd Berkeley Distribution May 5, 1986 SU(1)

Check Out this Related Man Page

su(1)							      General Commands Manual							     su(1)

       su - substitute a user ID

       su [username]

       su - [username]

       su -f [username]

       The  command  requests the password of the specified username.  If the correct password is given, changes to that username without changing
       the current directory.  The user environment is unchanged except for HOME and SHELL which are taken from the password file entry for  user-
       name.   The  shell  that  is  run  is also taken from the password file entry for username.  The new user ID stays in force until the shell

       If no username is specified, `root' is assumed.	To remind the superuser of his responsibilities, the shell substitutes `#' for	its  usual

       -f   Prevents from executing the .cshrc file, making start up faster.

       -    Simulates a full login.

	    An invalid password was supplied for the specified username.

       Unknown login: username
	    The specified username was not found in the passwd database.

       No directory
	    The home directory for the username is not accessible at this time (only with ``-'' argument).

       No shell
	    The shell specified in the passwd database entry for username could not be executed.

       Kerberos initialization failure
	    Consult your system administrator.

       If enhanced security features are enabled the following error messages are also possible:

       Requires secure terminal
	    Attempt to su to UID 0 on a line that is not marked secure in

       User's password has expired
	    Access is denied because the password for username is expired.

       This account is disabled
	    Access is denied because the auth entry corresponding to username is marked disabled.

       Log file of anyone who became
			root, with a date mark.

See Also
       csh(1), sh(1), passwd(5yp), environ(7), edauth(8)
       Security Guide for Administrators
       Security Guide for Users


13 More Discussions You Might Find Interesting

1. Linux Benchmarks

Results for Linux Benchmarks

Hi, I was trying to build Linux Benchmarks with latest Intel C++ Compiler. When I used -ipo (inter-procedural optimization) option, arithmetic test (arith.c) failed on execution. The problem is Intel compiler's advanced optimization option (-ipo) optimizes much more than expected and this... (50 Replies)
Discussion started by: cpjain
50 Replies

2. Solaris

hey i just got a Sun ultra 5!!!

now what do i do? im looking at it and i booted it after a bunch of code i got a line askign for the password i also downloaded solaris 10 any advice on how to install it? (36 Replies)
Discussion started by: russian460
36 Replies

3. Solaris

Coredumps and swap - was part of Solaris Mem Consumption

We have Sun OS running on spark : SunOS ciniwnpr67 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V440 Having Physical RAM : Sol10box # prtconf | grep Mem Memory size: 8192 Megabytes My Top Output is : 130 processes: 129 sleeping, 1 on cpu CPU states: 98.8% idle, 0.2% user, 1.0%... (39 Replies)
Discussion started by: rajwinder
39 Replies

4. Solaris

OpenSolaris instead Sun Solaris

My dear friends is Sun microsystems normall corporation I can not set Croatian keyboard no CHANCE i tried every possible method and today I can not get my GUI login. But strange thing is that on openSolaris my keyboard layout work PERFECTLY like in linux but I do no want to go to OpenSolaris... (36 Replies)
Discussion started by: solaris_user
36 Replies

5. Programming

write() issue during a low level hdd access

Hi, I am trying to write zeroes to the hdd using a c program. I don't want to use the dd or ddrescue or any such inbuilt program because of reasons like real time progress, writing custom patterns. (my program is more like an erasure application, but does only zero fill). here are the steps... (35 Replies)
Discussion started by: sponnusa
35 Replies

6. Shell Programming and Scripting

AWK Script Issue insert newline for a regular expression match

Hi , I am having an issue with the Awk script to insert newline for a regular expression match Having a file like this FILE1 #################### RXOER , RXERA , RXERC , RXERD .RXEA(RXBSN), RXERD , REXCD input RXEGT buffer RXETRY ####################### Want to match the RXE... (38 Replies)
Discussion started by: jaita
38 Replies

7. UNIX for Dummies Questions & Answers

List directories, subs and files

Hi, I try to list all files in a folder, including all the subdirs (and their subdirs) and all files contained in each of these folders. I then print it to a simple txt file. I use ls -R -1 >test.txt This sort of does what I need, yet, the result is something like: It reasonably comes... (53 Replies)
Discussion started by: dakke
53 Replies

8. What is on Your Mind?

What Company Makes Your Mobile Phone?

Without getting into the exact models (which change all the time anyway), who makes your (primary) mobile phone? (35 Replies)
Discussion started by: Neo
35 Replies

9. Shell Programming and Scripting

Problem with sed

I need to insert, or replace a character at a designated row and column in a text file with sed. Heres the code: sed "${row} s/./${newchar}/${col}" >test.txt Everytime I use this code on cygwin, It doesn't work, it just has me input text without an end. So why isn't it working? Also,... (35 Replies)
Discussion started by: tinman47
35 Replies

10. Solaris

Solved: Disk Unable to Boot

Update: The / file system (/dev/rdsk/c1t0d0s0) is being checked fsck unable to stat WARNING - unable to repair the / filesystem. Run fsck manually (fsck -F ufs /dev/rdsk/c1t0d0s0). Root password for system maintenance (control-d to bypass): I am unable to hit control-d to by pass. I... (50 Replies)
Discussion started by: br1an
50 Replies

11. UNIX for Dummies Questions & Answers

Script should check and run only on Sunday

Hi All, I have a script, I want to make sure the script should check whether the day is sunday, only then it should run, if it is run other days it should check and exit the script. Kindly help. Thanks in Advance !! (41 Replies)
Discussion started by: nanz143
41 Replies

12. Solaris

Bad magic number in disk label.

This is first time post...found this forum when looking for possible solution to fix my sun pc. Just one day can't boot it already showing the following: Boot device: disk File args: Bad magic number in disk label Can't open disk label package Evaluating: boot Can't open boot device... (40 Replies)
Discussion started by: SHuKoSuGi
40 Replies

13. What is on Your Mind?

PubNub Live Chat Beta Testing

Dear All, We are now beta testing our future "Live Chat" area using PubNub technology. This purpose of this testing is to test the core system, in general, and to see how many, if any, bugs crawl out of the woodwork. This "Live Chat" is not the... (48 Replies)
Discussion started by: Neo
48 Replies

Featured Tech Videos