01-10-2012
For security reasons on my HP boxes, root has /sbin/sh as shell with almost same PATH as cron... I did that to purpose to avoid security breach (if you are root then you are knowledgeable and so know where the binaries you intend to use are... etc.) and for maintenance purpose ( I have seen servers when going in maintenance mode become inaccessble because someone thought it was a good idea to change the shell to /usr/bin/ksh...).
so here su - is what most admins use but then the traceability of who did what in .sh_history can be nonsense ..
I prefer using an alias calling a su as root of a binary in /usr/bin that is nothing more than a copy of your preferred shell...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does anyone know if this is possible?
I want to give some users access to root's crontab but only with a read privilege.
Is this possible to do or can only root or people with full root sudo view root's cron? (4 Replies)
Discussion started by: LordJezoX
4 Replies
2. UNIX for Dummies Questions & Answers
Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks!
When attempting to use sudo on and AIX machine with oslevel 5.1.0.0, I get the following error:
exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
Discussion started by: Chloe123
1 Replies
3. UNIX for Dummies Questions & Answers
HI All,
I am using solaris
i created a user adam and updated his permissions
in vi sudoers file as follows
adam ALL=(ALL) NOPASSWORD: ALL
...........
when i create user by logging as sudo user .
$ sudo useradd -d /home/kalyan -m -s /bin/sh kalyan
sudo: not found
... (6 Replies)
Discussion started by: kalyankalyan
6 Replies
4. Shell Programming and Scripting
How do I create shortcuts? For example:
I just want to type one key "l" and have it output the command of "ls -lah"
I believe it's creating a file called l with 755 permissions but I'm not sure where to put the file.
*if it matters, I'm on a shared hosting web server using cPanel with... (2 Replies)
Discussion started by: ijustsawmars
2 Replies
5. UNIX for Dummies Questions & Answers
Howdy, I got a script that adds a esc char before all chars interpeted by bash shell but I wan't other solution. Is there a way to set ' and " as a non quotes type in bash (some local variable)? Have found that scsh is a non-quoting type shell but after reading Why I don't use scsh as a scripting... (3 Replies)
Discussion started by: johny_be_good
3 Replies
6. HP-UX
Hi All
I had installed sudo in HP UX 11.3 and it is working fine but not able to make entry required to set permission similar to ROOT without using password (PASSWD) change option for define user in /etc/sudoers file
Please help if some know the syntex? :confused::wall: (2 Replies)
Discussion started by: deviltech
2 Replies
7. AIX
Our AIX servers send e-mails which have the "from" address set to "root@company.com" for our root user ("C{M}company.com" in /etc/sendmail.cf). The problem is that when bad e-mails are sent out or rejected by remote servers, they are being returned and delivered to e-mail box of "Mary Root".
... (2 Replies)
Discussion started by: kah00na
2 Replies
8. Shell Programming and Scripting
Hi All,
i am trying to ssh to a remote machine and execute certain command to remote machine through script.
i am able to ssh but after its getting hung at the promt and after pressing ctrl +d i am gettin the out put as
expect: spawn id exp5 not open
while executing
"expect "$" {... (3 Replies)
Discussion started by: Siddharth shivh
3 Replies
9. Shell Programming and Scripting
Look at the following data file(cou.data) which has four fields separated by tab.
Four fields are country name, land area, population, continent where it belongs.
As for country name or continent name which has two words, two words are separated by space.
(Data are not accurately... (1 Reply)
Discussion started by: chihuyu
1 Replies
10. Shell Programming and Scripting
I've found this script part on the stackoverflow:
if ; then
sudo bash "$0" "$@";
exit "$?";
fi
I realized that sudo bash "$0" "$@"; is the only needed for me.
But the strange thing happens when I move this line outside the IF statement:
sudo bash "$0" "$@"; stops the... (9 Replies)
Discussion started by: boqsc
9 Replies
LEARN ABOUT DEBIAN
kdesudo
kdesudo(1) kdesudo(1)
NAME
kdesudo - a sudo frontend for KDE
SYNOPSIS
kdesudo [ Generic-options ] [ kdesudo-options ]
DESCRIPTION
kdesudo is a frontend for sudo for the KDE desktop.
OPTIONS
--help Show help about options
--help-qt
Show Qt specific options
--help-kde
Show KDE specific options
--help-all
Show all options
--author
Show author information
-v, --version
Show version information
--license
Show license information
-- Indicates end of options
-c << command >>
Specifies the command to run
-u << user >>
Specifies the target uid [default is root]
-n Do not keep password
-s Forgets all passwords
-p << priority >>
Set priority value: between 0 and 100, 0 is lowest [default is 50]
--nonewdcop
Let command use existing dcopserver
--comment << comment >>
Comment to display in the dialog box
--noignorebutton
Do not display << ignore >> button
--attach << window_id >>
Makes the dialog transient for an X app specified by winid
-i << icon_name >>
Specify icon to use in the password dialog
-d Do not show the command to be run in the dialog
-r Use realtime scheduling
-f << file >>
Use target UID if << file >> is not writeable
-t Enable terminal output (no password keeping)
-u Sets a runas user
COPYRIGHT
This manual page was written by Anthony Mercatante <tonio@ubuntu.com> for the Ubuntu system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version
published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
2007-03-26 kdesudo(1)