Questions related to the sudo command that allows users to run programs with the privileges of a different user (normally the root user).

learn more… | top users | synonyms (1)

1
vote
1answer
290 views

Should I use a separate 'admin' user as my “root sudo” or grant sudo to my 'app' user?

I'm still wrapping my brain around the Ubuntu 'nullify root' user management philosophy (and Linux in general) and I'm wondering if I should 'replace' my root user with a user called 'admin' (which ...
1
vote
3answers
10k views

Sudo not available in guest login

When I login as guest I am unable to execute any command with sudo. E.g.: sudo ps returns: sudo: unable to change to sudoers gid: Operation not permitted How can I fix this?
3
votes
1answer
18k views

Open file or application as root from GUI

Is it possible to open a file or application as root from the GUI? My ideal would be right-clicking on a file or an application and seeing an "Open as Root" choice in the context menu, after which I ...
38
votes
4answers
9k 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 ...
3
votes
2answers
523 views

Why doesn't the command do-release-upgrade doesn't require sudo?

I was wondering why the command do-release-upgrade doesn't require sudo? I mean, it does significantly change your system, so I would have guessed it requires sudo. This is from ubuntu self, but it ...
0
votes
1answer
57 views

Visudo not working for specified files

I am trying to give sudo ability without the need of passwords to specific files. So far I have: employee ALL=(ALL:ALL) NOPASSWD: /home/file_name The file has a simple chmod command, in the bash ...
1
vote
1answer
80 views

Why does alien need sudo privilege?

I wonder why does alien need sudo privileges while converting a .rpm file to .deb in a non-privileged directory(eg. my home directory). Is this a security feature(which I believe is redundant, since ...
0
votes
1answer
202 views

cannot access tor ownership

I've tried the recommended options to gain ownership of tor browser and am still not successful. This is the script I got: sudo chown $USER-Rv~/.tor-browser chown: missing operand after ...
8
votes
1answer
1k views

How to check if sudo password has been entered for this terminal session?

As said in the headline, I need to check if the sudo password has been entered for this terminal session in a shell (aka, if I have sudo rights now). If I have it, I would like to do one thing and if ...
11
votes
2answers
23k views

sudo: unable to resolve host ubuntu-server

I have a problem with sudo. Every time when I trying to use sudo I got this problem: sudo: unable to resolve host ubuntu-server My /etc/hosts file: 127.0.0.1 localhost 127.0.1.1 ...
-1
votes
1answer
851 views

fatal error: log4cxx/logger.h: No such file or directory

I am getting this error whenever I am compiling my c++ code from command line. fatal error: log4cxx/logger.h: No such file or directory Is there any easy way to download the log4cxx package from the ...
1
vote
1answer
67 views

No battery indicator when logged in as second (non-sudo) user

I'm using Ubuntu 12.04 with Unity. I have a setup with two users, one with sudo privileges for admin use, and one without for daily use. When logged in as the non-privileged user, there's no battery ...
1
vote
2answers
250 views

How does command-not-found determines if user is administrator

I am administrator of two ubuntu servers. On one of them, when I try to run a command (for instance irb1.9.1) from a package that is not installed, I get the following message: The program 'irb1.9.1' ...
2
votes
4answers
8k views

How to enable root password in Ubuntu 12.04

Whenever I use the sudo su command to work as root, it does not ask my root password. How can I make it prompt for root password?
1
vote
1answer
2k views

How can I fix “dpkg: error: parsing file”?

... and what is sudo and where/how would I type the scripts I've seen in some related answers? Yes I am very new to Linux, and am using Ubuntu 12.04 LTS. All updates are failing with ...
2
votes
2answers
457 views

Problems with Sudo commands

I've been trying to install lamp server onto my ubuntu 12.04 LTS and i cannot get the sudo command to work. Been getting the following error everytime i hit/install anything with sudo.
0
votes
1answer
135 views

Unable to change permisions on windows partition disk

I need to change permissions of files in my /media/MAVEN/Projects MAVEN is my windows disk partition. The permissions on the Projects folder are: :/media/MAVEN/Projects$ ls -la \total 340 drwxrwxrwx ...
2
votes
1answer
87 views

Updater is not upgrading

I am using Ubuntu 12.10. I tried to upgrade it using the Software Updater, but it is not working even after pressing Upgrade button. Then I tried to upgrade through the terminal using the command sudo ...
3
votes
1answer
184 views

What can a user do without sudo?

I'm setting up a server and want a user to only have access to his own files. I do a regular adduser command: sudo adduser username And give the user a password. Then I log in to it via ssh and see ...
0
votes
2answers
981 views

ubuntu software center + 'sudo' not working [duplicate]

I am having problems with the software center and typing Sudo into the terminal. I am a very new user, I'm not sure what is wrong. ubuntu 12.04 when I type in something like sudo apt-get install ...
1
vote
2answers
982 views

Can I copy 2 partitions at a time with sudo dd

I have copied Windows from one hard drive to another with SUDO DD many times successfully. It was always from a smaller SSD (120 GB) to a at least same sized or bigger SSD. I could always copy the ...
2
votes
1answer
1k views

How can add the line into etc/sudoers file?

I am getting this error: visudo: >>>/etc/sudoers:syntax error near line 29 <<< visudo: >>>/etc/sudoers.tmp unchanged visudo: >>>/etc/sudoers:syntax error near line ...
0
votes
2answers
5k views

Permission denied for all sudo comands

I just typed "sudo chmod 770 ." on my /usr/bin directory by mistake [acc]:/usr/bin$ sudo chmod 770 . Now every time i run a sudo command I get a "Permission denied" error [acc]~$ sudo bash: ...
7
votes
2answers
49k views

Launch Sublime Text 2 from terminal [duplicate]

I am new to Ubuntu and is trying to configure my environment so i can launch Sublime Text 2 directly from the terminal. I followed the solution on this post but no luck so far. These are steps I did ...
1
vote
1answer
2k views

Sudo su setting default password automatique [duplicate]

I'm a newbie linux (Ubuntu) user and i have a question to sudo su, I always like use the root in the shell for no annoying privilgies errors :) But the problem is sudo su always ask me for a password ...
0
votes
3answers
658 views

why am I being denied my rights in sudo?

why am I being denid my rights to delete directories even I created in sudo now I cannot rid myself of it -- yes it is empty did this to insure I have sudo in the accounts: userz@bw:~$ sudo adduser ...
-3
votes
1answer
492 views

`sudo userx` returns `sudo: userx: command not found` , why?

just installed this Linux disto ver 13.04 installed Xfce 4.0x got it running just fine then for some reason that good'O sudo stopped working all by itself why? I now type in sudo and this is what I ...
0
votes
1answer
446 views

Cannot undo sudo chmod 655 /

I've accidentally run 'sudo chmod 655 /', and now I cannot undo this operation again because I cannot access sudo anymore. I'd actually wanted the permission to be set to 755. Is there any way I can ...
0
votes
5answers
196 views

kill sudo with specific time every time

we all know that in Ubuntu sudo password will be auto saved for 15 minutes and expires after that. But I want to make it for quick expire. I mean I dont want to change any settings and when I ever I ...
1
vote
1answer
27 views

Issue with Rosewell network adapter

When running the install.sh script for my roswell network adapter RnX-N180UBE I get an error Cannot change ownership to uid 1007, gid 501: Operation not permitted If anyone has any experience with ...
4
votes
1answer
1k views

how to use my vimrc file when edit file width sudo command

I found when i use the command sudo vim /etc/www/main.wsgi the vim said: neocomplcache disabled: "sudo vim" is detected and $HOME is set to your user's home. You may want to use the sudo.vim ...
1
vote
1answer
3k views

Sudo is not working

My sudo is not working. How to fix? I am using 13.04. I searched through google over an hour and haven't found anything effective. sudo -i sudo: effective uid is not 0, is sudo installed setuid ...
0
votes
1answer
71 views

Program interface is ugly when started by script

I am starting Qt-Linguist in a bash script via sudo linguist-qt4 $PathToParentDir/translate_$lang.ts I could also use gksu instead of sudo but this would add more dependencies since most people ...
0
votes
1answer
357 views

Adding users and groups

I am new to this and I am trying to create users and groups. So far, I have the following: sudo adduser Alice sudo adduser Bob sudo adduser Mike sudo adduser Bill #create groups sudo groupadd ...
1
vote
2answers
1k views

sudo doesn't ask for password anymore

I did not notice it but it has been quite a while since I entered the password for using sudo priviledges. Here is my /etc/sudoers file: # # This file MUST be edited with the 'visudo' command as ...
1
vote
1answer
8k views

Can't save files in /var/www using lamp installed with tasksel

I just installed lamp with tasksel and it works. But inside /var/www I can create files only with sudo from terminal, I don't know why. In another Ubuntu installation I didn't have such problem. I ...
1
vote
2answers
3k views

How can I change owner back to root?

So, I did a stupid thing... I was installing some software (Java SE 7, if you must know) from a tarball, and I got tired of using sudo, so I went and changed the owner of my /usr directory to myself. ...
0
votes
0answers
25 views

How to create user with sudo privileges from shell script? [duplicate]

I am writing a shell script that will create a user that I will use for deployments. I want to add that user to be able to use sudo without a password. How can I create this user from a shell script ...
-1
votes
3answers
290 views

Lost/Reset Password [duplicate]

Trying to reset password. At root@ubuntu:~#, I enter passwd username and press enter. I then get Enter new UNIX password:. At this point I can not use the keyboard to enter anything. If I press ...
5
votes
1answer
1k views

What does this code do if entered in a terminal?

sudo add-apt-repository ppa:langdalepl/gvfs-mtp sudo apt-get update Then, launch Software Updater (previously known as Update Manager) and install the available updates. After you update everything ...
0
votes
0answers
37 views

How to bypass sudo when it asks for password & when you don't have a password to begin with? [duplicate]

I removed my Password on my login account(I'm not admin). When I go to terminal to install something using sudo, it asks for a password. Not the admin's password but my account's password but I don't ...
0
votes
2answers
361 views

can't use sudo but only su

As root, I created a new user and added to sudo group with adduser myuser sudo but when I try to sudo something I got the Sorry, try again. error. The curious thing is that i can use su without ...
0
votes
2answers
5k views

No root privileges when using GUI

So I'm logged in as the user 'Shannon', but can't gain root access through the GUI when I'm prompted to install a program for example. However using sudo su, type in the root password, gain access ...
0
votes
1answer
802 views

How do I allow anyone to view my files on my network?

I have created a little server on Ubuntu 13.10, I've shared certain folders using SAMBA. On my WINDOWS PC my username and password is the same as the username and password of the server, so I'm ...
5
votes
2answers
5k views

How do I prevent git from requiring sudo on every git command

I created a directory /var/www to store my web apps clone in. When I initially cloned the app from github it required me to use sudo and every time I do a git pull it's requiring sudo. I'm running ...
1
vote
0answers
356 views

sudo -Hu rsyncuser rsync --progress -avz /source/path/ host.org:/destination/path/ - why does it change directory permissions?

here is my setup: on my source machine i created user rsyncuser with reading and writing permissions in /source/path on my destination machine i created user rsyncuser with reading and writing ...
3
votes
3answers
9k views

Not able to install *.run file in Ubuntu? [duplicate]

I am newbie with Ubuntu and I am using Ubuntu 12.04.3 LTS version inside Windows using WUBI. I have to install few softwares in Ubuntu which are as follow: MPLAB X IDE version 1.90 XC8 Compiler and ...
1
vote
1answer
11k views

Trying to update but not enough space on boot (answer here) [duplicate]

The error message I get suggests "sudo apt-get clean" I try running it but nothing happens. Just get back to the prompt. Is there any other terminal commands I should try to clean temporary files ...
0
votes
1answer
1k views

why sudo gem install fails but gem install succeeds?

I simply do sudo gem install sqlite3 and have response: sudo: gem: command not found Then I do gem install sqlite3 and it works. Where is the problem with sudo ?
1
vote
1answer
122 views

help cannot change inotify watch number because file cant be over written

so I'm trying to start using lsyncd for a more up to date backup system. the problem that i have run into is that the directory that i have to backup contains more than 250,000 items and i would like ...