The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
4answers
172 views

Linux /home privacy

Warrning: this is probably against Unix philosophy and desgin, but I will ask it anyway. Is there a way to achive privacy for three seperate /home/user folders? Problem which is rasing that ...
0
votes
1answer
277 views

password less sudo access for deploy user [duplicate]

Possible Duplicate: ubuntu - how can I avoid typing a password on every admin action? Googled and tried various approaches to solve the password-less sudo access commands, but none seem ...
1
vote
1answer
473 views

Is is possilbe to use environment variables in sudoers rules?

For example, there is a line defining the rule in sudoers file: %wheel ALL=(ALL) NOPASSWD: $HOME/bin/ls is it valid? If not, is there an equivalent way to achieve this goal? Thanks.
2
votes
2answers
750 views

run a script on remote server

I am trying to run a script on remote server as a root user. I have this line in my shell script. cat /home/myuser/create_user_updated.sh | ssh myuser@$myip "sudo sh" I get the following error. ...
0
votes
0answers
866 views

rsync permission denied

I've inherited two red hat 5 systems which are to be synchronized via an rsync script which runs as a cronjob. This is not happening and I've been tasked with finding out why. The cronjob(currently ...
1
vote
4answers
660 views

Is sudo command restriction in /etc/sudoers secure?

I try to restrict a backup daemon's user (that needs root access to client machines) so that it can only use the one command it needs. Thus, in /etc/sudoers, I use daemonuser ALL=NOPASSWD: ...
3
votes
3answers
2k views

How does sudo relate to Solaris? (most interested in Solaris 11)

We will be creating a new server build model using Solaris 11 and I wanted to know a little more about sudo. I have had very limited introduction to how it works in Ubuntu Linux, but we only use that ...
5
votes
3answers
3k views

HOW TO: disable sudoer from editing /etc/sudoers file?

How can I prevent a sudoer from editing the /etc/sudoer file?
0
votes
2answers
207 views

adding users to sudoers - problem

I have created a user, named test, now I want to give this user root privileges, so as root, I've added this user to the sudoers list in CentOS. root ALL=(ALL) ALL test ALL=(ALL) ...
1
vote
1answer
1k views

How to edit /etc/sudoers to allow a user to run specific shell scripts?

I have a few scripts in a directory which I need www-data to run (from PHP) with root permissions. It seems like CMND_ALIAS= /path/to/script, /bin/sh www-data ALL=(ALL) NOPASSWD: CMND_ALIAS gives ...
3
votes
1answer
263 views

Sudo resetting environment variables

Whenever I use the sudo command, none of my environment variables appear to be preserved. I've tried modifying the sudoers file, by removing the env_reset specification. #Defaults env_reset I've ...
0
votes
1answer
199 views

sudo prevent switches/arguments on command

Is it possible to allow a user to run a command using sudo, but prevent them from adding any arguments to the command? For example, if I want a user to be able to run: /sbin/mii-tool but not: ...
-6
votes
1answer
608 views

How do I add a user to the sudoers file? [duplicate]

Possible Duplicate: How do I add a user to the sudoers file? I already know that I should: run visudo be logged in as root But then what changes should I make to the sudoers file? I ...
-3
votes
1answer
229 views

How do I add a user to the sudoers file? [closed]

I already know that I should: run visudo be logged in as root But then what changes should I make to the sudoers file? p.s. The question got 'down-voted'. Is this a bad question?! I looked at ...
2
votes
1answer
369 views

One user from group cannot sudo while others can

I have a strange problem on an debian lenny server. The server is a NIS client to share users/groups with another server and in the sudoers file the following is placed: %groupX ALL=(ALL) ALL So ...
0
votes
3answers
309 views

missing entry in sudoers file

I am working on a web interface (access only through intranet and not through internet). On clicking a button in the PHP page, a Python script does a few things and in the end, it needs to execute cp ...
2
votes
2answers
3k views

Limit sudo to only one directory and it's subdirectories by sudoers file

So I would like to limit Apache to only change permissions in a certain folder and all of it's sub-directories, so this is what I have in my sudoers file apache ALL= (ALL) NOPASSWD: /bin/chmod -R ...
3
votes
2answers
4k views

Allow User 'git' to run 'git pull' as 'www-data' via sudo

I would like to allow git to run 'git pull' as user 'www-data'. As far as i understand git ALL=(www-data) git pull in /etc/sudoers should make it. Sadly i get an Syntax error for this line and ...
0
votes
2answers
2k views

Added a new user to group www-data and to sudoers, still not sure why user creates new directories as root

I'm new to Linux systems administration (dealing with users and groups) but I do have a lot of command line experience as a developer. Right now, i'm trying to make sure that three users I've added ...
1
vote
1answer
548 views

Error using sudo

I recently started having this error when using the sudo command: sudo: /etc/sudoers is mode 0644, should be 0440 sudo: no valid sudoers sources found, quitting Any idea how to resolve this? I use ...
0
votes
2answers
3k views

sudoers syntax to run shell script as php user?

I want to run a shell script restore as postgres user from php script (the user name is php) using sudo (so password is not required) the script will have few lines of code, something like ...
0
votes
2answers
256 views

Mounting centralized NAS server with NFS . Need to forbid users from doing sudo su

long history short: - we have a bunch of linux servers. lots of users work with linux Desktops. They use them as testing servers. All the infrastructure has the Authentication services linked by ...
1
vote
1answer
1k views

Using NOPASSWD for specific commands in sudoers file, PASSWD for all others

I would like to configure sudo such that users can run some specific commands without entering a password (for convenience) and can run all other commands by entering a password. This is what I have, ...
7
votes
2answers
3k views

Is it possible to use sudo with !requiretty for a specific command

I am trying to allow a specific command to be run under sudo without a tty. I found that I can disable requiretty for a group : Defaults:%support !requiretty But I dont know how to do it for a ...
0
votes
3answers
749 views

Can you copy a sudoers file from one server to another?

We've got a handful of RHEL5 servers and I was wondering if you could copy a master sudoer file from one of the Linux servrs and over write the default one on all the other servers and have it work?
2
votes
1answer
2k views

What to change in /etc/sudoers to allow restarting service?

I want an unprivileged user to be able to restart tomcat on my server. So I edited /etc/sudoers as follows username ALL=/etc/init.d/tomcat6 However, when the user runs /etc/init.d/tomcat6 restart ...
5
votes
5answers
10k views

Where is the sudoers file on Solaris?

Where is the sudoers file in Solaris? Is it different between Solaris versions (specifically, 9 and 10)?
1
vote
2answers
8k views

sudo [ no tty present and no askpass program specified ] [ can't stat /var/run/sudo: Permission denied ]

I'm running rsync from a php script using backtick operators. It's running as an apache user. In /etc/sudoers, I've set #Defaults requiretty Cmnd_Alias REPORTS = /usr/bin/rsync apache ALL = ...
3
votes
1answer
13k views

sudo: no tty present and no askpass program specified (trying to start apachectl)

we are running hudson to monitor a couple of shell jobs. The problem is that hudson runs all jobs as user "hudson". That's ok, except for some special commands that require super user rights, like ...
1
vote
3answers
3k views

sudoers config to allow edit of files in particular directory (and children)

How can I provide sudo access for a user, but restrict them to only editing of files, and only files that are under a nominated directory. For example, I would like the userabc to be able to edit all ...
6
votes
4answers
4k views

Ubuntu : borked my sudoers file, how can I fix it?

I was editing my /etc/sudoers file and saved it but it has a syntax error in there. Now I can't 'sudo vim /etc/sudoers' because sudo thinks the sudoers file is not valid. How can I fix this?
2
votes
1answer
3k views

Setup RHEL/CentOS 5 to use SUDO in command line and X

How do I make CentOS/RHEL prompt me for my password (and not roots) when I run a privileged command. I have found many guides that detail how to do this for the command line but I want it to work ...
1
vote
2answers
2k views

sudoers to execute commands as another user

I'd like to allow one of my users to execute commands as another user on my Ubuntu Lucid server. I'm struggling with finding the syntax for the sudoers file to do this. Say I'm connecting to the box ...
1
vote
2answers
1k views

Allow user to run /bin/cp as another user on Unix

I have a user who is getting this problem: Sorry, user myuser is not allowed to execute '/bin/cp /tmp/tempfile /applications/tomcat/instance/webapps/' as tomcat on myserver.on.our.network. When ...
1
vote
1answer
566 views

Normal user can run command on one machine but must be root on another, how do I remove this restriction?

I have two machines. On one, a non-root user can run ethtool and gets output, on the other machine the same user gets sh: ethtool: command not found. If I sudo su - to be root, then ethtool is indeed ...
0
votes
1answer
423 views

Default sudo group for Debian Linux?

What is the proper name that Debian (or ubuntu) uses for the sudo users? So far it seems like it's probably one of these: sudo wheel admin root
1
vote
1answer
252 views

Granting php sudo acsess

I am trying to grant php sudo access (for automated share mounting). I was sucess full at granting php sudo access on one of my systems by adding daemond to the list of sudo's via su --login -c ...
0
votes
1answer
961 views

Ubuntu /etc/sudoers problem

Greetings I am not able to add any users to the sudo users as my sudoers file has the wrong permission. My only access is SSH thus this(via recovery mode) solution doesn't seem to work for me. I ...
2
votes
1answer
1k views

RHEL4/CentOS4 setting up SUDOERS from LDAP

I built the server based on this guide, but i skipped the samba part. (CentOS 5.x Samba Domain Controller With LDAP Backend) I added in sudoers support based on this guide. (Sudoers LDAP Manual) ...
0
votes
1answer
50 views

Are there any security issues when adding a cmnd_alias for svn to /etc/sudoers?

Are there any security issues when adding a cmnd_alias for svn to /etc/sudoers?
28
votes
5answers
30k views

How to setup passwordless `sudo` on Linux?

How can passwordless sudo access be setup on either RHEL (Fedora, CentOS, etc) or Ubuntu distributions? (If it's the same across distros, that's even better!) Setting: personal and/or lab/training ...
9
votes
8answers
18k views

using su inside of a shell script

I'm automating a deploy process and I want to be able to just call one .sh file on my machine, have it do my build and upload the .zip to the server and then do a bunch of stuff on the server. One of ...
2
votes
2answers
933 views

Problems restarting apache via PHP (even with sudo)

As part of the signup process on our site, VirtualHost directives get created an added to a config file via PHP, after each VirtualHost is created apache is restarted gracefully so that the new site ...
3
votes
4answers
7k views

Allow Apache to run a command as a different user

I have a script that executes several commands in a user's home directory. The files are owned by the user and Apache (the www-data group) only has read privileges to them. The script needs to be ...
1
vote
1answer
529 views

How do I allow non-root users to install/uninstall/configure softwares and start/stop services?

I have installed MySQL and Apache httpd in Fedora 8 as root. When I try to start MySQL and httpd as a non-root user, I get error messages stating that the user does not have permissions to start the ...
2
votes
1answer
264 views

help with visudo

I was trying to make shutdown without root user using visudo I tried the following still it did not work for me hawk ALL=NOPASSWD:/sbin/shutdown -h now
0
votes
3answers
905 views

sudo: apache restarting a service on CentOS

I need my web app to restart the dansguardian service (on CentOS) so it needs to run '/sbin/service dansguardian restart' I have a shellscript in /home/topological called apacherestart.sh which does ...
0
votes
1answer
334 views

sudoers file cleanup and consolidation tool/script

I am curious to know what other folks out there might be using to keep the sudoers file in a sane manner. I am looking for a tool, that removes redundant entries, overlapping permissions and/or ...
4
votes
2answers
2k views

Execute build task in Hudson with root privilages

I have a build script which executes apt-get and therefore requires root privileges. What is the best way to run this script in Hudson? Currently the only solution I have found that works is to add ...
-1
votes
1answer
569 views

Want to install GDB on Fedora 7 machine

I want to install GDB GNU debugger for debugging C Programs, onto my fedora machine.. I installed the gzip file from gnu website, but it gives error during MAKE command.. I am doing all the steps ...