11-18-2008
Ask sysadmin to add test user to sudoers file.
10 More Discussions You Might Find Interesting
1. AIX
I want give a user "sar" permission, so I modify the sudoers file: unix1 is the group for users can use sar command
Cmnd_Alias RUN_SAR = /usr/sbin/sar
User_Alias UNIX1_USERS = %unix1
UNIX1_USERS ALL = NOPASSWD:RUN_SAR
However, when I run sar command, it shows:
$ sar 1 4
sar: The... (1 Reply)
Discussion started by: rainbow_bean
1 Replies
2. 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
3. Ubuntu
I'm fairly new to unix and I was trying to change the name of my host and my user. I changed the name in /hostname using this: gksudo gedit /etc/hostname I then tried changing the name back but it still gave the same error: {env_reset,... (1 Reply)
Discussion started by: H3jck
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am using ubuntu 12.04 and every time I installed new program or do:
sudo apt-get install -f
I get the following mesage:
Download done.
sha256sum mismatch jdk-7u3-linux-x64.tar.gz
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
subprocess... (2 Replies)
Discussion started by: programAngel
2 Replies
5. UNIX for Advanced & Expert Users
Hi
I am trying to automate the deployment of a tar ball onto a set of remote servers and am getting this error from the ssh -
sudo: no tty present and no askpass program specified
What I have done is add some code into the user's ssh key that does a few things like delete the existing... (2 Replies)
Discussion started by: steadyonabix
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have installed sudo on Solaris 10 (sparc). When I try to add a user I get the following:
-bash-3.00$ sudo addusr scarlet sudo
sudo: /usr/local/etc/sudoers.d is owned by uid 2, should be 0
Password:
I entered a password, thinking it was for the sudo user but it failed. Then I entered the... (3 Replies)
Discussion started by: Scarlet
3 Replies
7. Emergency UNIX and Linux Support
Im Using Centos Version
$ cat /etc/redhat-release
CentOS release 6.4 (Final)
I'm Using Sudo Version
$ sudo -V
Sudo version 1.8.6p3
Sudoers policy plugin version 1.8.6p3
Sudoers file grammar version 42
Sudoers I/O plugin version 1.8.6p3
tried to setup notification mail for sudo,... (2 Replies)
Discussion started by: babinlonston
2 Replies
8. Solaris
I cannot solve the following error bellow.
Can someone help me on this please?
Mar 31 07:08:45 serverx sudo: fork
Mar 31 07:18:50 serverx sudo: fork
Mar 31 07:28:45 serverx sudo: fork
Mar 31 07:38:47 serverx sudo: fork
Mar 31 07:48:45 serverx sudo: fork
Mar 31 07:58:45 serverx... (1 Reply)
Discussion started by: pangarano
1 Replies
9. Shell Programming and Scripting
Team ,
I am trying to sudo to instnace using a shell script .In out put i am getting this error for every line ...I am running this script as root ..
sudo su - userid -i db2 "command "
Error
/etc/profile: shopt: not found
how can we overcome this error ? Can someone help on... (1 Reply)
Discussion started by: rocking77
1 Replies
10. AIX
Hello,
I tried installing sudo on a lab AIX server. It has been successfully installed. but i still see the below errors.
/>sudo -V
Sudo version 1.8.27
Configure options: --prefix=/opt/freeware --sbindir=/opt/freeware/sbin --libdir=/opt/freeware/lib --mandir=/opt/freeware/man... (8 Replies)
Discussion started by: System Admin 77
8 Replies
LEARN ABOUT DEBIAN
ctluser
CTLUSER(8) System Manager's Manual CTLUSER(8)
NAME
ctluser - control lusers
SYNOPSIS
ctluser [ -h ] [ -m ] command [ argument... ]
DESCRIPTION
Ctluser sends a message to the control channel of a given luser(8) This command can only be run by the sysadmin(1)
In the normal mode of behavior, the message is sent to the luser's brain, which then performs the requested action and sends back a reply
with a text message and the exit code for ctluser. If the luser's brain successfully performed the command, ctluser will exit with a sta-
tus of zero and print the reply on standard output.
The ``-m'' flag is used to display an MPEG of the results of the given command on the console of the sysadmin(1) Note that this requires
the sysadmin(1) to be running an X server.
To see a command summary, use the ``-h'' flag. If a command is included when ctluser is invoked with the ``-h'' flag, then only the usage
for that command will be given.
The complete list of commands follows. Note that all commands have a fixed number of arguments. If a parameter can be an empty string,
then it is necessary to specify it as two adjacent quotes, like "".
addhist <entry>
Add an entry to the luser's employment record.
allow reason
Allow a luser to use the computer system again. The reason must be the same text given with an earlier ``reject'' command. Note
that this command is currently not implemented.
begin name
Begin a new luser(1) with the given file. Note that this command is currently not implemented.
cancel pid
Causes a process of a luser to be killed
changegroup group
Changes a luser from their current workgroup to the one specified.
checkfile
Forces a user to return to a paper based system
drop Causes a large mass to drop onto the luser from a great height.
flushlogs
Destorys all logs of the actions done by the sysadmin(1) to the luser.
go reason
The luser is fired for the given reason.
hangup Makes the luser hang themselves
mode Displays the operating mode of the luser
newgroup group
Causes a luser to make their own newgroup up
pause thought
Makes the luser pause for the given thought. Note that this may cause some lusers to crash
shutdown reason
Makes the luser shutdown. This is essentially the same as killing them
signal sig
Sends the given signal to the luser
throttle reason
Causes the luser to throttle themselves
trace item flag
Gives the sysadmin(1) information on what the luser is doing.
BUGS
Ctluser sometimes has the effect of lusers complaining the to management. The use of bosskill(8) maybe required at this point.
HISTORY
Written by Simon Burr <simes@tcp.co.uk>. Based upon the manual page for ctlinnd(8), part of the InterNetNews system.
SEE ALSO
luser(1), sysadmin(1), bosskill(8)
19 October 1995 CTLUSER(8)