11-14-2007
First time sudo and Linux
We have a linux system at all locations that is not really used interactively. Well the users need to shutdown the box on weekends. to do this they usally call us to shut it down remotely with root. well i just came accross sudo. and i am unsure how to use it
i did
visudo
then i did
%mliu ALL=/sbin/shutdown
I saved it but it said i need to be root to execute the script. did i type something wrong?
9 More Discussions You Might Find Interesting
1. Linux
Hi everyone,
I wonder if anyone ever came across the idea of unifying AD and Linux user accounts
We have a Linux machine with 'samba' 'winbind' service configured to let Windows AD users to logon locally using their AD accounts and passwords.
I can use 'su' to get to the local user privilege... (0 Replies)
Discussion started by: will_mike
0 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 Advanced & Expert Users
Hello! Can anyone please assist:
Question:
On Linux Server I have created two users John and Matt. I want to give both the users the ability to run 'more' and 'tail -f' commands on the log file in the directory /var/log/test.log. I do not want to give them SU rights.
Can any one please... (6 Replies)
Discussion started by: sureshcisco
6 Replies
4. AIX
Sudo In AIX, how to find out what commands have been run after a user sudo to another user? for example, user sam run 'sudo -u robert ksh' then run some commands, how can I (as root) find what commands have been run?
sudo.log only contains sudo event, no activity logging. (3 Replies)
Discussion started by: jalite19
3 Replies
5. Linux
Hi,
I am new in linux. Please help for create new user and also need to give sudo access in linux box. Please help me
Now i am having new access
Thanks,
Mani (2 Replies)
Discussion started by: Mani_apr08
2 Replies
6. Shell Programming and Scripting
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
#!/bin/bash
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies
7. UNIX for Dummies Questions & Answers
Hi
I have an Oracle DBA that is trying to install an RPM from Stratavia which is a web based portal and it executes the following:
Instance Wrapper=sudo -u oracle /opt/datapalette/jython/jython
Server Wrapper=sudo -u root /opt/datapalette/jython/jython
I've compared the /etc/sudoers... (8 Replies)
Discussion started by: jeff-fafa
8 Replies
8. Linux
Hi,
I have Suse Linux Enterprise Server 10 installed on two node ocfs2 cluster my server. Node-1 is ptdmod01 and Node-2 is ptdmod02. It is having 218 ocfs file system, which are shared among both servers. Since this is ocfs2, each disk from EMC Storage is mounted individually on file-system as... (4 Replies)
Discussion started by: solaris_1977
4 Replies
9. Shell Programming and Scripting
I have a script that checks if the script has been ran with sudo.
If the script is not ran as sudo, the current script is being executed with exec sudo bash.
You are asked for a password, you type in the password, success. Everything is perfect - the commands inside the script are ran as sudo.... (1 Reply)
Discussion started by: boqsc
1 Replies
LEARN ABOUT LINUX
ctrlaltdel
CTRLALTDEL(8) Linux Programmer's Manual CTRLALTDEL(8)
NAME
ctrlaltdel - set the function of the Ctrl-Alt-Del combination
SYNOPSIS
ctrlaltdel hard|soft
DESCRIPTION
Based on examination of the linux/kernel/sys.c code, it is clear that there are two supported functions that the Ctrl-Alt-Del sequence can
perform: a hard reset, which immediately reboots the computer without calling sync(2) and without any other preparation; and a soft reset,
which sends the SIGINT (interrupt) signal to the init process (this is always the process with PID 1). If this option is used, the init(8)
program must support this feature. Since there are now several init(8) programs in the Linux community, please consult the documentation
for the version that you are currently using.
ctrlaltdel is usually used in the /etc/rc.local file.
FILES
/etc/rc.local
SEE ALSO
simpleinit(8), init(8)
AUTHOR
Peter Orbaek (poe@daimi.aau.dk)
AVAILABILITY
The ctrlaltdel command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
Linux 1.2 25 October 1993 CTRLALTDEL(8)