Tagged Questions
2
votes
1answer
58 views
How to set up a script to run as root non-interactively?
I need to set up the following script to run as root whenever I log in:
#!/bin/zsh
truncate -s 0 ~yourstruly/.juniper_networks/network_connect/ncsvc.log
I know how to run the script as root ...
1
vote
1answer
358 views
exclude commands from user's sudo permissions
Consider the following line in a /etc/sudoers file:
username ALL=(ALL) ALL, !/usr/bin/passwd
as far as I know, this allows user username to use sudo, unless he not uses /usr/bin/passwd. But ...
2
votes
1answer
558 views
How do I restart apache as non-root (using a git-hook)?
For one specific user I want to be able to restart Apache. This user does have sudo privileges and I could run sudo /etc/init.d/apache2 reload, but I want to include this restart script in a git ...
21
votes
7answers
2k views
Non-Root Package Managers
From my research, I seem to notice that all package managers insist on being used as a privileged user and must be installed into /.
Typically, what I like to do is create a throwaway account, ...