03-22-2010
You can have the sysadmin make the command setuid. This is dangerous, and the sysadmin should allow only a few people access to the command.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies
2. Shell Programming and Scripting
I am writing a script that has some tasks that must be run as root, then set of tasks to be run as normal user, then again as root.
is there a way to switch between users in a script?
any other alternatives?
thx (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
3. Shell Programming and Scripting
Got a cron to run everyday under my user. this cronjob runs a script from my /home/jack/scripts/run.sh
clear
#
# su to root and run a script, return with result
# su -
# passwd
# run /getfile.sh
# return with result
# the result will copy 2 files from /prod/app/logs/ and... (0 Replies)
Discussion started by: karthikn7974
0 Replies
4. Shell Programming and Scripting
i have logged in as user.
I want to write a script to login into root and execute commands for eg. ifconfig or other command.
kindly help me out. (6 Replies)
Discussion started by: pradeepreddy
6 Replies
5. Shell Programming and Scripting
Hi All
I have written one shell script for GPRS route add is given below named GPRSRouteSet.sh
URL="www.google.com"
VBURL="10.5.2.211"
echo "Setting route for $URL for GPRS"
URL_Address=`nslookup $URL|grep Address:|grep -v "#"|awk -F " " '{print $2}'|head -1`
echo "Executing ... (3 Replies)
Discussion started by: mnmonu
3 Replies
6. Solaris
:confused: I installed latest version of java ( jre 1.6) on Solaris Machine ......when I run java -version as root, shows the latest version but when I run java -version as normal user, shows the old / previous version
What should I do to fix this ...should show the latest version... (3 Replies)
Discussion started by: frintocf
3 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
I am trying to stop and start a process using the below code. I have sudo access on my machine
## PID = process id
echo "$PASSWD" | sudo -S kill -9 <PID>
echo "$PASSWD" | sudo -S /opt/abc/startserver
/opt/abc/startserver: error while loading shared libraries: librts.so: cannot open... (6 Replies)
Discussion started by: rakeshkumar
6 Replies
8. UNIX for Dummies Questions & Answers
Whenever i switch from root to another user, by doing su - user, it takes me to home directory of user. This is very annoying as i want to be in same dir to run different commands as root sometimes and sometimes as normal user.
How to fix this? (1 Reply)
Discussion started by: syncmaster
1 Replies
9. Shell Programming and Scripting
Hi,
I am trying to schedule a script that starts on reboot.I came across chkconfig utility to schedule scripts on reboot.
Problem here is can i how to use this chkconfig to schedule a script that runs a s normal user.
Or if there is any other function to schedule on reboot as normal user... (4 Replies)
Discussion started by: praveena kotapa
4 Replies
10. Shell Programming and Scripting
i m logged in with user1 id.
i wish to execute the below as root user for which i tried several commands but all of them fail.
sudo 'cat /tmp/tmp.file >>/etc/logger'
Password:
sudo: cat /tmp/tmp.file >>/etc/logger: command not found
sudo cat /tmp/tmp.file >>/etc/logger
bash:... (5 Replies)
Discussion started by: mohtashims
5 Replies
LEARN ABOUT LINUX
sysadmin
SYSADMIN(1) General Commands Manual SYSADMIN(1)
NAME
sysadmin - responsible for everything imaginable that may or may not have to do with the system you're using. Contraction of "system" and
"administrator"
SYNOPSIS
sysadmin [-ab] [-cd] [-ef] etc......
DESCRIPTION
sysadmin takes care of everything, is generally harangued, must be supplied with coffee, chocolate, and alcohol in order to function prop-
erly, cannot be exposed to direct sunlight, and must not be allowed to have a life.
sysadmin is not intended as a user interface routine; other programs provide user-friendly front ends; sysadmin is used by everyone who can
track him [her] down.
With no flags, sysadmin reads its standard input up to an EOF, or a line which sysadmin wishes to parse, and then proceeds to ignore it
entirely and read news all day. When invoked with the -w option, sysadmin reads standard input and responds according to terms of job
description.
OPTIONS
-bofh Go into Bastard Operator From Hell mode. This option causes sysadmin to use tools stored in the /usr/lib/bofh directory to parse
the standard input and route user tasks appropriately.
-cd causes sysadmin to become caffeine-deprived, resulting in system slowdowns.
-b causes the sysadmin to function normally while augmenting the standard input with beer(5). Can be used with the -t option as well,
depending upon which version of sysadmin you are running.
-t causes the sysadmin to smoke tobacco, which can result in significant performance improvement, provided you are running the correct
version of sysadmin.
-Cfile Specify an alternate configuration file (sysadmin.cf is the standard).
-dX set debuggin value to X.
-fFullname
Set the full name of the sysadmin.
-Bf Create the sysadmin.cf configuration freeze file.
-lname Sets the name of the "luser" person (that is, originator of a given request). -l can only be used by "trusted" users (who are listed
in sysadmin.cf).
NOTES
The -t option should not be used with a version of sysadmin which is not capable of parsing tobacco input. Though the functionality of
this command may seem similar to the -b option, it should not be confused with that or the related -c option.
25 September 1995 SYSADMIN(1)