You are here: Home » S » Su » Sudo

Sudo

Posts tagged with Sudo

sudo vs gksudo. difference?
What's difference ? ...

Sudo - is there a command to check if I have sudo and/or how much time is left?
(Originally posted on Stack Overflow. They suggested I try here instead. Here's the original post: http://stackoverflow.com/questions/3858208/sudo-is-there-a-command...

How can I alias a command for sudo?
I have an alias that I would like to use both as a regular user and as root, via sudo. Specifically, it is this: alias rm=trash This works fine as a normal user, and it works fine when I use sudo -i to get a root shell prompt, but...

Cannot login as super user anymore
I have an issue with login as root with in ubuntu. I've mistakely assigning my user to a group as primary group and it is not anymore in sudoers. Consequently I cannot use "sudo" anymore. I tried to login as "root" but it doesn't accept the password. Or maybe, ...

Execute a sudo NOPASSWD command remotely via SSH
I have a remote linux system that I can connect to via ssh and public key and then execute the following command: sudo jetty restart This command on this system is configured to allow anyone to execute without the sudo password. I.e. the sudoe...

What does the sudo command do?
I have been a windows user for all of my professional life. I just got a MacBook Pro and want to get started developing with Ruby on Rails. I have run across several installation guides which recommend using the sudo command. From what I can tell, the sudo...

Script to use sudo in a terminal, gksudo otherwise?
I'd like to write a script that does an administration task, and I would like to be able to run it either from a terminal or not. If it runs in a terminal, even a graphical one, I'd like it to ask for the password using sudo. If it is run in some other way (for example Alt+F2 dialog), it should u...

localhost in sudoers
There is no chance of an internal attack, so I would like to give sudo privileges to users at the local computer using sudoers. I tried these lines separately: %admin localhost=(ALL) NOPASSWD: ALL %admin 127.0.0.1=(ALL) NOPASSWD: ALL &...

fine-grained sudoers configuration (allowed commandline arguments)
Hi, is there a straight-forward way to allow a user to run (for example) /usr/bin/pacman -S -u as root, without allowing him to run /usr/bin/pacman -S -u some_package ?&...

Strange sudo message at startup
I have Kubuntu 10.04 LTS, and since I installed it on my computer, I get a password prompt after login. I can use the computer without any problems if I don't enter the password there, so I usually just cancel it. But now I decided to track down what it is actually. peet@p...

Allow limited cp access to a sudo enabled user
We have several tier2 admins whom have very limited admin rights granted via sudo; As they have limited experience we really want to put them into a tight set of operations they can perform. One of their tasks generally involves copying something to a sub directory of a root direc...

How to make Shared Keys .ssh/authorized_keys and sudo work together?
I've setup the .ssh/authorized_keys and am able to login with the new "user" using the pub/private key ... I have also added "user" to the sudoers list ... the problem I have now is when I try to execute a sudo command, something simple like: $ sudo cd /root ...

Why is my sudo generated file owned by root?
When I run '# sudo touch newfile' my expectation was that the file would be owned by me, not by root, as my understanding of sudo is that it is giving me, the user, root priviledges but does not actually switch the user. Do I have a fundamental misunderstanding of what sudo is a...

How do I make sudo ask for the root password?
When I run sudo as a normal unprivileged user, it asks for my password, not the root password. That's often convenient, but it reduces the amount of information someone would have to have in order to run commands as root. So how can I make sudo ask for the root password ...

How to get administrative permissions in Ubuntu?
my dvd-rw was not working. but i had to install linux. so i installed ubuntu from the iso using demons tool. But when i am opening the terminal to create an user,it's prompting that only root have the permission to create an user. i am trying to use "su" command but it's showing ...

sudo displays typed password in bash script
Hullo, I have a bash script that uses sudo a few times. There's a couple of strange points about it though. It asks me for my password a few seconds after I've already entered it for a previous command. The second time I enter my...

symlink and sudo executable
If I have the below sudoers entry usera ALL=(userb) NOPASSWD: /home/userc/bin/executable-file usera ALL=(userb) NOPASSWD: /home/userc/bin/link-to-another-executable-file When I log-on as usera and try running the below commands, it works...

How to fix broken sudo config in Ubuntu?
Hi, I made changes with sudo visudo on Ubuntu 10.04. I get error in shell: sudo: unknown defaults entry `env_resets' please help me Thanks ...

How I can make sudo session an hour and not few minutes in Ubuntu 10.04?
How I can make sudo ubuntu 10.04 session an hour and not few minutes? Now I have to write my password for sudo commands every few minutes. Thanks ...

Linux/Unix - how to enable one user to `sudo` without a password
How can a user be setup to sudo (or su -) without entering a password? ...