1
vote
3answers
836 views

Apache sudoers access

I am making a system call from php which is `sudo /usr/bin/perl -pi -e 's/foo/bar/g' /tmp/newxml.xml`; which works fine in php cli. But would not work in php via browser, because apache does not ...
1
vote
3answers
5k views

How to configure sudoers to always keep LD_LIBRARY_PATH envrionment variable?

No matter what I try, it seems that the LD_LIBRARY_PATH environment variable is not kept after I run a command with sudo. The only way I managed to have it stick, is to prefix my sudo command with ...
0
votes
0answers
891 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 ...
0
votes
3answers
773 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
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
1answer
589 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 ...
5
votes
2answers
2k views

sudo chown - prevent ../

Need to allow a user to chown files under a particular directory using sudo. This does the trick: user1 ALL= NOPASSWD: /bin/chown -[RPfchv] user2\:user2 /opt/some/path/[a-zA-Z0-9]* But, does not ...