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
72 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
550 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
10k 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
3k 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
925 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
184 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
92 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 ...
5
votes
1answer
386 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
1k 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 ...
2
votes
2answers
2k 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
2k 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 ...
2
votes
3answers
10k 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: /usr/...
12
votes
2answers
109k 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
1k 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
560 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
716 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
209 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
32 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
2k 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 root?...
0
votes
1answer
90 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 don'...
0
votes
1answer
502 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
2k 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 ...
3
votes
1answer
13k 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 ...
2
votes
2answers
10k views

How can I change owner back to root? [duplicate]

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
28 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
355 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
2k 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
41 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
449 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 ...
2
votes
2answers
7k 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
840 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 ...
8
votes
2answers
13k 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
473 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 ...
4
votes
3answers
14k 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 ...
5
votes
1answer
28k 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
2k 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
147 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 ...
30
votes
4answers
24k views

How to get out of “sudo -s” command in Terminal?

I entered sudo -s command in terminal, and the it changed from shameek@shameek-K55VD:~$ to root@shameek-K55VD:~#. Now when I click on the close terminal window icon it says, "There is still ...
0
votes
2answers
3k views

What is the answer to “are you root” when installing packages? [duplicate]

What is the answer to "are you root" in Ubuntu 12.10. I was installing the restricted extras for the 12.10 when I got this message after typing my password. I typed yes and now all I see are y in the ...
1
vote
1answer
5k views

Running a program as another user without typing a password

I'm trying to mark my browser internet traffic with a DSCP by selecting the packages with a certain owner. In order to do that I have to start my browser with a dummy user. I start my browser by ...
1
vote
2answers
10k views

Unable to install xampp in ubuntu 13.04

I am installing xampp in ubuntu 13.04, but while installing the xampp.. when i try to extract the file .. it shows the following message sudo tar xvfz xampp-linux-1.8.1.tar.gz -C /...
0
votes
1answer
107 views

How to modify and give acces to user in sudo file

when I am trying to install vim using sudo apt-get install vim, its showing sudoers file error. Please help me out.
4
votes
2answers
11k views

Won't execute terminal commands

I have been using Ubuntu 12.04 for quite a while and have never had a problem come at me out of the blue like this. I'm trying to install python 3.2 on my Ubuntu system and every time I run the code ...
7
votes
2answers
3k views

Why doesn't $HOME change if I use sudo?

I expected the -H option to give me the target user's environment. nbest@geo:~$ sudo -H -u tanum echo $HOME /home/nbest nbest@geo:~$ sudo -u tanum echo $HOME /home/nbest nbest@geo:~$ sudo -i -u ...
0
votes
2answers
63 views

New User - Installing Applications ie Android SDK - Where To ? ( Equivalent of Program Files ? )

it is taking me some time to find my way around Ubuntu and while I know I can Sudo an App like PCManFM to create directories I do not know where the best place to create a folder for the Android SDK ( ...
0
votes
1answer
45 views

Having issue with creating a script

Trying to create a simple script but I'm not having any luck. I created a file with nano, saved it. Then: sudo chmod +x filename The script is: #!/bin/bash #script to restart networking after ...
2
votes
1answer
172 views

How to clean up aftermath from rookie ubuntu command

Here are the commands I regretfully run: sudo chgrp root /usr/bin sudo chgrp root /usr/local I had recently added a user to root group and because my user still did not have write permissions, I ...
25
votes
1answer
29k views

Remove sudo privileges from a user (without deleting the user)

If you give a user sudo privileges how can I remove the sudo privileges and make the user become just a regular user? I used: sudo adduser username sudo Now I've changed my mind.