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)

0
votes
1answer
177 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
142 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
21 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 ...
2
votes
1answer
708 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
2k 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
52 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
0answers
17 views

Merged etc, home, and var to copy user accounts and broke system how do I regain root privilages (failed user account migration)

I merged etc, home, and var to copy user accounts and broke system how do I regain root privilages failed user account migration
0
votes
1answer
185 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
380 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 ...
0
votes
0answers
258 views

Python script works fine with root but doesn't work with sudo

I have a python script that I run as root and it works fine. When I try to run it with another user (not root) I use sudo command, but it doesn't work. As root, I have typed: /usr/bin/python ...
1
vote
1answer
2k 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
604 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
272 views

sudo password for parallels?

I'm having a problem in Parallels 8 with Ubuntu 12.04 as my guest OS. Ubuntu asked me for a UNIX password when I first logged on, and I typed in my desired password. However, any time I try to use a ...
0
votes
0answers
24 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
220 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 ...
4
votes
1answer
537 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
33 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
0answers
143 views

Installed Qt as sudo su, unable to launch IDE

I installed Qt 5.1 by the following commands in Ubuntu 12.04.3 sudo su cd /QtSdk--linux-.run chmod +x QtSdk--linux-.run chown root:root QtSdk--linux-.run ./QtSdk--linux-.run After installation, the ...
0
votes
2answers
201 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
2k 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
731 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 ...
1
vote
2answers
1k 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
208 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 ...
0
votes
0answers
75 views

I turned off signing in with password - now I cannot authenticate for admin tasks

When I turned off sign in with a password and when I went to go install programs and the password menu pops up so it will install the program. It says I have the wrong password when I type in my ...
0
votes
0answers
219 views

Root commands don't work for matlab ./install (gksu, gksudo, dkesudo)

somehow I can’t launch ./install with root. I mounted matlab2013 with Furius. If I execute ./install, when installer fails to install in /usr/local/matlab folder. I tried sudo ,gksudo, gksu and ...
0
votes
0answers
190 views

Headphones don't work: 13.04 - Toshiba Satellite P205 s8811: Realtek ALC268

Headphones don't work: Just installed 13.04 on my Toshiba Satellite P205 s8811. External speakers work. Audio card by Realtek ALC268 and I have tried: alsamixer but made absolutely no difference & ...
0
votes
3answers
3k 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 ...
0
votes
1answer
1k 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
505 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
105 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 ...
24
votes
4answers
3k 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
453 views

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

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
0answers
246 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
7k 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
76 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.
1
vote
1answer
816 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 ...
2
votes
2answers
218 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
41 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
35 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
74 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 ...
2
votes
1answer
836 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.
0
votes
1answer
449 views

Cannot create a new document in /var/www [duplicate]

I'm unable to create a new document in /var/www/ I followed this tutorial :- How to avoid using sudo when working in /var/www? and did as suggested, but still I'm unable to make a new document. Any ...
0
votes
0answers
24 views

error while trying to run sudo apt-get update [duplicate]

I am using ubuntu 12.04 and am getting error message while try to run sudo apt-get update. This is what I am getting when i run the above mentioned command: failed to fetch ...
8
votes
2answers
22k views

Sudoers file, enable NOPASSWD for user, all commands

Preface This is a fairly complex question related to the Sudoers file and the sudo command in general. NOTE: I have made these changes on a dedicated machine running Ubuntu Desktop 13.04, that I use ...
2
votes
1answer
104 views

Why my gnome terminal is set to root by default?

When I try to open up a new terminal in Ubuntu to do some operations, it always defaults to an admin based terminal with [sudo] password for xxxxxxxx: $ I need a regular terminal. How do I do this? I ...
0
votes
0answers
25 views

How to get back root access? (Rootrechte bekommen?) [duplicate]

Translation: I use Xubuntu and have deleted my Admin Account. After I had created a new one which also had administrative rights. I did that becauseof some sound problems which are now gone. Now the ...
0
votes
1answer
84 views

sudoing my own bash scripting

Okay, so I have my scripts in ~/bin/, and they are added to the path normally. However, when I prefix them with sudo, they are not in the path. I figure this is because they're not in the path for ...
2
votes
1answer
227 views

Difference between running command as sudo and running command as root?

I know this question has been covered in many contexts but I'm unable to understand and predict when a user added to the sudoers file will not have permission to do something when prepending sudo to a ...
12
votes
4answers
2k views

What is the functional difference between sudo su and sudo -i?

Why is one preferred over the other in this example? sudo su echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi.conf exit Please provide links to Ubuntu documentation.
0
votes
1answer
346 views

.sh file is not running changing directory command

my contents of .sh file are sudo -i cd /home/madhu131313/Documents/ I run it ,then it asked for root password, it changed to root, but it doesn't execute the changing directory