3
votes
1answer
117 views

Prevent other sudoers to use apt-get command

How can I prevent other sudoers to run apt-get install command? Other commands such as mount and others are OK with them.
-1
votes
3answers
142 views

How to use Vlc with sudo privileges?

I'm trying to use Vlc with sudo but it doesn't work. This is the error: VLC is not supposed to be run as root. Sorry. If you need to use real-time priorities and/or privileged TCP ports you can use ...
0
votes
1answer
45 views

Why do I need administrative privileges to use chsh?

I was working on a Ubuntu system where I did not have administrative privileges, and I couldn't change shells (from tcsh to bash) using chsh. I solved the problem writing in the .tcshrc to open bash. ...
1
vote
0answers
26 views

I changed my password to none and now i cant authenticate nor even cant do sudo? [duplicate]

I have admin rights. Could there be a way to change back my pass. I dont even know whats my password is because I already set it to "none' now its very hard to install apps. Need help please ! Fast.
5
votes
1answer
181 views

How to configure pkexec to not ask for password?

I have a GUI application that needs to call a daemon (written in Python) with superuser privileges. I would like to do this without prompting the user for a password. Since the daemon is a script, I ...
0
votes
2answers
55 views

How to log in to admin account from a non-admin account?

I have an admin account with sudo privilege. I have created a new user but haven't given a sudo privilege to it. Then I logged in as that new user: sudo -i -u foo_user Now I want to get back to my ...
1
vote
3answers
113 views

Restore accidentally with rm'ed pam.conf?

I have accidently removed the files /etc/pam.conf and /etc/security/pam_env.confusing rm. Now I get this error message when I try to use sudo: sudo: unable to initialize PAM: No such file or ...
0
votes
1answer
77 views

Ubuntu Opera works only with root rigths

Opera doesn't start if I don't start it with sudo opera. Which can be the problem???
32
votes
4answers
3k views

Why do we need to be root in terminal for shutdown and restart?

When we install/remove/update packages or make any changes which require administrative privileges we are prompted for the password of admin user who has the sudo privileges - this happens both via ...
0
votes
0answers
429 views

crontab -e unable to save

I am trying to save a cronjob to the crontab file. If i just run: crontab -e, it opens up the file in sublime but when i try to save, it pops up with: Unable to save /tmp/crontab.FKjsLq/crontab If ...
2
votes
1answer
458 views

Looking for a better solution to execute a single sudo command when using a normal user account?

I'm logged in with a normal user account that isn't member of the groups sudo and admin. When I run the following example command.. su -c 'sudo some_command_that_needs_sudo' sudo-user ..it's ...
2
votes
3answers
469 views

Ways to run Nautilus with elevated privileges [duplicate]

What are the differences between the following ways to run Nautilus with elevated privileges: a) sudo nautilus b) gksu nautilus c) gksudo nautilus Which should I use?
26
votes
5answers
5k views

How to NOT become a root user? Are administrators root?

I installed Ubuntu on my PC. To log in, I use the username and password I created during installation. Does this mean I am a root user? If yes, then how do I become non-root? It looks like non-root ...
4
votes
2answers
4k views

How can I get an interactive shell as another non-root user?

I'm using Ubuntu 10.04 LTS server, with the default security model (root locked, using sudo to elevate privileges). I occasionally enjoy using sudo -i when I'll need to run a series of commands with ...
1
vote
1answer
194 views

Why few commands (eg: fdisk -l) do not inform user “you do not have privilege”?

Few commands that need to do sudo remind you that "You do not have the privilege" or "Are you root?" etc. while a few commands do not give such message. For example, if you do fdisk -l instead of ...
18
votes
4answers
89k views

How do I grant sudo privileges to an existing user? [duplicate]

I want to grant a newly created user sudo privileges in Ubuntu. I tried sudo adduser hduser admin but it says no admin group exists. How can I do it?
1
vote
2answers
2k views

Why do i have to be root to run the command ifconfig?

I've recently switched from Ubuntu 10.04 LTS to 12.04 LTS, and one of the changes i have noticed is that when i try to run the command ifconfig (for example to view my own ip), i get the following ...
0
votes
1answer
414 views

Temporary Admin Status for System Maintenance on User Account

I have a user account that I have given sudo privileges on my computer. I use this account for everyday use and system maintenance. I know it isn't a good idea to give sudo permissions to an everyday ...
2
votes
1answer
573 views

Ultraedit Linux, why cant I modify a file?

Sorry for the rookie question, i just installed Ultraedit for Ubuntu and i can open files and modify them but when i try to save them i dont have permissions? Using the command line and vim i can ...
2
votes
1answer
357 views

Problem accessing superuser with sudo

Through Virtualbox didn't allow me use USB because my account wasn't a vboxuser group, I've to run this command: $sudo usermod -G vboxusers brallan After I needed to access to superuser privileges ...
9
votes
3answers
18k views

Disable sudo permission to user from command line

I have activated root user in ubuntu and want to use ubuntu as server with no DE. For this I want to disable sudo privilege given to first user. How can I do this from command line ? I know I can use ...