02-18-2012
Basically, only root should be running the administrative commands in /sbin and /usr/sbin. Non-root users may be technically able to run them - according to the file permissions - but many times the command will fail because the user does not have sufficient access to some resource that the command requires, such as the /proc or /dev filesystems. If you want to empower specific users to run specific commands as root, then set up sudo and use that.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello All,
hope someone here can help me with this. I am a new unix system administrator on the HP-UX machine. Every night, our operators back up our file system using one tape but as of recently, our files have gotten bigger and it now requires 2 tapes for a complete backup. Since the operators... (3 Replies)
Discussion started by: sanjit
3 Replies
2. UNIX for Dummies Questions & Answers
All,
I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies
3. UNIX for Dummies Questions & Answers
Hi
I'm wondering how I can find all the files which were installed on certain date?
For example: I'm looking for alle the files which were installed on the 11.09.06 on the system.
Does somebody know how to do this?
Thanks
Reto (2 Replies)
Discussion started by: goldenglobe
2 Replies
4. UNIX and Linux Applications
I have a shell script. In this script I executes various command and my requirement is such that if any command fails I've to terminate the shell script.
To achieve this objective I'm checking the value of $? after each command and if its value is greater thaen I 'exit' the script.
Is there... (2 Replies)
Discussion started by: ashok2008
2 Replies
5. AIX
Hi I am new to AIX and any help regarding the same would be really appriciated, thanks In advance.
My priority issue is how to detect from command line that the volume / disk on AIX machine is a USB or removable disk /volume
and if possible can we list out details for that disk / volume (1 Reply)
Discussion started by: mak_mailbox
1 Replies
6. Shell Programming and Scripting
I need to know a command to find out which version of Perl Im currently running.
Thanks
Ben (2 Replies)
Discussion started by: bigben1220
2 Replies
7. Solaris
Hi All
After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies
8. Shell Programming and Scripting
i have this line of code on a korn shell script to detect the presence of script run:
ISRUNNING=`ps -eaf -o args | grep -i sfs_load_file.ksh | grep -v grep | wc -l`
sometimes this returns either 1, 2, or 3. when it returns 2 or 3 that tells us that there are more than 1 script of... (8 Replies)
Discussion started by: wtolentino
8 Replies
9. Shell Programming and Scripting
Hello,
I am running a python file from terminal and I wish to see which code is running at background. When I use htop, I see just a few commands, unable to see entire command.
htop > report
nano report
Output:
^
Following parts of ffmpeg line is not shown by htop. Just showing... (7 Replies)
Discussion started by: baris35
7 Replies
10. Ubuntu
I am trying to find a way to run a command upon any movement of a mouse.
The 1st statement shows the mouse co-ordinates. So it can detect mouse movement.
xinput test 9
First list input devices:
$ xinput list
If possible, I would like to use it in a bash script. (2 Replies)
Discussion started by: drew77
2 Replies
LEARN ABOUT DEBIAN
consolehelper
CONSOLEHELPER(8) System Manager's Manual CONSOLEHELPER(8)
NAME
consolehelper - A wrapper that helps console users run system programs
SYNOPSIS
progname [ options ]
DESCRIPTION
consolehelper is a tool that makes it easy for console users to run system programs, doing authentication via PAM (which can be set up to
trust all console users or to ask for a password at the system administrator's discretion). When possible, the authentication is done
graphically; otherwise, it is done within the text console from which consolehelper was started.
It is intended to be completely transparent. This means that the user will never run the consolehelper program directly. Instead, pro-
grams like /sbin/shutdown are paired with a link from /usr/bin/shutdown to /usr/bin/consolehelper. Then when non-root users (specifically,
users without /sbin in their path, or /sbin after /usr/bin) call the "shutdown" program, consolehelper will be invoked to authenticate the
action and then invoke /sbin/shutdown. (consolehelper itself has no priviledges; it calls the userhelper(8) program do the real work.)
consolehelper requires that a PAM configuration for every managed program exist. So to make /sbin/foo or /usr/sbin/foo managed, you need
to create a link from /usr/bin/foo to /usr/bin/consolehelper and create the file /etc/pam.d/foo, normally using the pam_console(8) PAM mod-
ule.
OPTIONS
This program has no command line options of its own; it passes all command line options on to the program it is calling.
SEE ALSO
userhelper(8)
AUTHOR
Michael K. Johnson <johnsonm@redhat.com>
Red Hat Software 18 March 1999 CONSOLEHELPER(8)