SU(1) User Commands SU(1)NAME
su - run a shell with substitute user and group IDs
SYNOPSIS
su [OPTION]... [-] [USER [ARG]...]
DESCRIPTION
Change the effective user id and group id to that of USER.
-, -l, --login
make the shell a login shell
-c, --command=COMMAND
pass a single COMMAND to the shell with -c
-f, --fast
pass -f to the shell (for csh or tcsh)
-m, --preserve-environment
do not reset environment variables
-p same as -m
-s, --shell=SHELL
run SHELL if /etc/shells allows it
--help display this help and exit
--version
output version information and exit
A mere - implies -l. If USER not given, assume root.
AUTHOR
Written by David MacKenzie.
REPORTING BUGS
Report su bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
COPYRIGHT
Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for su is maintained as a Texinfo manual. If the info and su programs are properly installed at your site, the com-
mand
info coreutils 'su invocation'
should give you access to the complete manual.
GNU coreutils 7.1 July 2010 SU(1)
Check Out this Related Man Page
CHROOT(1) User Commands CHROOT(1)NAME
chroot - run command or interactive shell with special root directory
SYNOPSIS
chroot NEWROOT [COMMAND [ARG]...]
chroot OPTION
DESCRIPTION
Run COMMAND with root directory set to NEWROOT.
--help display this help and exit
--version
output version information and exit
If no command is given, run ``${SHELL} -i'' (default: /bin/sh).
AUTHOR
Written by Roland McGrath.
REPORTING BUGS
Report chroot bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
COPYRIGHT
Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO chroot(2)
The full documentation for chroot is maintained as a Texinfo manual. If the info and chroot programs are properly installed at your site,
the command
info coreutils 'chroot invocation'
should give you access to the complete manual.
GNU coreutils 7.1 July 2010 CHROOT(1)
Guys look at this:
i have to write a script that takes a file as an argument. The script should be able to determine what permissions the owner, group and everybody has for the file passed in. The output should be displayed similar to this.
READ WRITE EXECUTE
OWNER LEE.BALLANCORE YES YES NO... (9 Replies)
Hi folks,
How can I change a terminal to display different things in different collors.. for example, folders in blue, scripts in green... as it works in Linux??
Thanks for any tip!
Fernanda (21 Replies)
Hello everyone,
I am using Linux and tcsh shell. I am trying to run a free open source program( which is in the form of a binary file), but every time I run it it gives me an error saying:
newhtsg_v1.0:Command not found.
I have set permission also for the same.
What else can I do to make... (4 Replies)
This is the way
sed -i 's/home/$USER/.config/hello_there//g' /home/$USER/.gnomerc
But, as far as I saw you cannot add any "/" in the string you want to remove....
So, what should I do in order to remove this path (which contains "/") ?:confused: (7 Replies)
Hi,
I have written a shell script which monitors my application and generates a report. The out put of the same looks like this.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30700 xmp 15 0 2986m 2.9g 1488 S 0.0 18.3 66:00.93 cee
This report is generated... (8 Replies)
I would like to practice shell scripting and need an environment - free shell account. I tried Arbornet and the freeshell.org. But both always give me error: "File operations disabled, server identity can't be verified". Any idea what I should do? thanks in advance. (9 Replies)
How do you use two shell variables in awk? I am using Solaris 10 and don't have GNU products installed.
File (transportation.txt) contents:
car make
boat model
airplane landing
snowmobile track
bicycle helmet
sled housing
Thanks to this forum this code works (prints everything from the... (4 Replies)
Hi,
I need to search for source path in file2 , as per file1 and if found get the next line and take the field value and put it in URL value of file1.
In file1, NF is not same for all the lines.
file1:
<type source="/home/USER/Desktop" Dest="/home/USER/DIR1/Desktop" URL="ssh/path"/>
<type... (8 Replies)
Here's the code... obviously
#!/bin/bash
SRC=$1
function main {
validate
run
}
function validate {
if ]; then
printf "You need to supply a source.\n";
exit 1;
elif ]; then
printf "This is a... (18 Replies)
Hi guys and gals,
I have many files that contains many lines of data. I am trying to find a needle in a haystack in that I'm looking only for files that contain word1 AND word2.
I'm using ...
...
but this is finding files that contains word1 OR word2. No good for me. How can I grep to... (7 Replies)
Dear All,
sorry for open a new thread but the old one (https://www.unix.com/shell-programming-and-scripting/263430-find-values-within-range-output.html) is already marked as resolved but actually it doesn't work properly and the input file are a bit different.
File 1:
1 195240910 +
2... (6 Replies)
Hi,
I have some 2000 names in a table like below.
Java
Oracle/SQL
ANSI SQL
SQL,DWH,DB
DB&Java
And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line.
I have to execute the below queries in... (10 Replies)