sudo - Execute a command with superuser privileges.
5
votes
1answer
734 views
how to set the sftp -s subsystem option in a configuration file
The sftp command supports a subsystem option (-s) which allows the remote user to select the remote sftp-server executable, and optionally upgrade to sudo in the process like so;
sftp -s ...
1
vote
1answer
224 views
automate login as sudo and su
I know the security risks, but I am performing this experiment/excercise on an old, seldom used *nix machine I have laying around the house. So doing this excerise will not bring any security risk to ...
3
votes
0answers
59 views
Auto completion for inaccessible directories
I'm trying to get a auto completion for folders that I don't have permission to view / enter, my first thought was to use compgen and sudo to do the completion manually, but looks like compgen is a ...
3
votes
0answers
329 views
Sudo yum permission denied Fedora 17
On Fedora 13, in /etc/sudoers I used to have a line:
Cmnd_Alias SOFTWARE=/usr/bin/yum
and then for a user that would have the privilege of installing his/her own RPM packages, an entry like:
...
2
votes
0answers
51 views
/proc/net/wireless does not show values unless run as root
cat /proc/net/wireless does not show statistics for wireless devices unless it is run as root, even though the permissions on the file are 444. The same seems to apply when accessing statistics via ...
2
votes
0answers
247 views
How to enable `sudo` with custom functions?
Recently I learned you can enable sudo for custom aliases as follows:
alias sudo='sudo ' # note: the space is required!
The reason this works is the following:
If the last character of the ...
2
votes
0answers
291 views
Can't make a copy of /var/lib/mysql/ibdata1
I have a RedHat Linux server and I'm trying to make a copy of /var/lib/mysql/ibdata1, but I'm receiving an error saying permission denied and the file cannot be opened.
I'm logged in as root user and ...
2
votes
0answers
577 views
Security of xhost (local) and sudo xauthority forwarding
Context: launch a GUI application as a linux service. I considered making a headless daemon with a GUI front-end but there is too much code involved to do it now. This service must start on user ...
2
votes
0answers
196 views
gksudo not caching credentials
I've built a shell script for mounting ISO images in Nautilus, and it worked fine in earlier versions of Ubuntu. One of the many problems encountered in 11.04 is that gksudo doesn't seem to cache the ...
1
vote
0answers
53 views
how to run ssh -t user@remote 'sudo nohup bash -c “comand”' in background
I want to run a script on a remote host with sudo priviledge,
someone suggests that I should use nohup and ssh -t, like the following command
the script ls;sleep 10;echo finish is crafted here to ...
1
vote
0answers
61 views
External HDD read/write permission changing from a cron job
So, I run an overnight python script that runs a backup of our web data in the /var/www directory, then moves the backups to an external HDD in /media. The script in scheduled in the sudo crontab ...
1
vote
0answers
92 views
git deploy using sudo nopasswd
I'm trying to write simple post-recieve script, which would switch to webserver user and pull git repository. To do so, I added git user to sudoers (I've added this to very last line):
git ALL = ...
1
vote
0answers
108 views
Bodhi Issue with Nautilus as SU
I am unsure how to run Nautilus with superuser privilieges on Bodhi, or if this is just a bad idea altogether. I am looking for a file manager that can browse my local network, and can be run as ...
1
vote
0answers
265 views
Gnome update-notifier doesn't show updates when user not in sudo group (Debian Squeeze)
Gnome desktop notifications of new updates is not working on my system. I noticed that the notifications stopped working when I removed my desktop user from the sudo group (I prefer to have a separate ...
0
votes
0answers
210 views
gkSudo Error no matter what I do
I don't know why, It wasn't happening yesterday. Was it because I turned the machine off and back on again this morning?
Anyway here's the error. GkSudo won't run anything at all now.
(gksudo:3262): ...
0
votes
0answers
227 views
Segmentation fault while doing `sudo su -`
I am getting a segmentation fault error while doing sudo su - or sudo su - username in Linux Server (RHEL 4.7).
Can any one help me resolve this issue? Linux server (RHEL 4.7) is a LDAP client.