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)

2
votes
1answer
16 views

must sudo modprobe after reboot

My wierless card is up and working. After each reboot i need to sudo modprobe rt5592sta I have searched and it looks like sudo su echo ndiswrapper >> /etc/modules exit should work. I tried ...
1
vote
1answer
18 views

Different settings for Midnight Commander running as root and as regular user

Is it possible to have some settings for Midnight Commander when run as user $ mc and some different settings (e.g. skin) when run as root? $ sudo mc The motivation is that it is immediately ...
0
votes
0answers
44 views

What is sudo password?

I recently bought an HP Laptop with Ubuntu installed on it. I don't need a login password. I want to install a software called Open foam. For that I need a sudo password. I dont know it. How to get ...
0
votes
0answers
47 views

executable running without sudo but not with sudo

I installed xampp in my system and it is installed in the location /opt/lampp. After that i added the php location to path varialbe using export PATH=$PATH:/opt/lampp/bin. So when i run php -v using ...
-1
votes
1answer
27 views

Can't delete a folder even with sudo su

I used the Ubuntu customization tool and the terminal stopped so I decided "Oh well, I'll just close it!". Now the 2 folders it made 'remaster-iso' and 'remaster-root' both have a lock sign on the ...
0
votes
0answers
14 views

Post Install Inability to use any operation requiring elevated privilege [on hold]

Got a strange one. On both a laptop and desktop I am setting up for a project with 15.04, once the setup completes, I can login, but the same password that logs me in won't work on any elevated ...
2
votes
1answer
79 views

How to undo command sudo nautilus

I have typed sudo nautilus to make some changes , now I want to come out of the command or undo the command to give access back to root.
1
vote
0answers
14 views

timestamp_timeout in Ubuntu doesn't work

I use ubuntu 14.04 and I tried to change sudo password timeout but change made to it doesn't work. Please help , My visudo file looks like this. GNU nano 2.2.6 File: ...
0
votes
2answers
155 views

Can't run shellscript with sudo

When I try to run my script like this: sudo ./connector.sh It give me this: sudo: ./connector.sh: command not found What am I doing wrong?
-1
votes
0answers
18 views

Space Engineers Game .exe file wine Fatal Error. HELP

I’m trying to get my Space Engineers file working... Help Please. As I am new to coding and anything Ubuntu, this is difficult for me. Also I do not have access to sudo commands (I'm currently not in ...
14
votes
1answer
1k views

What happens if you use @reboot reboot in crontab file?

What would happen if you use: sudo crontab -e And add the line: @reboot reboot Will it go into a infinite loop of rebooting?!
1
vote
1answer
47 views

sudo error “sudo: /var/lib/sudo/approachit writable by non-owner (040777), should be mode 0700” [closed]

This error occurs whenever I try to work with sudo. i found this error. Now i want to resolved this error in terminal. sudo: /var/lib/sudo/approachit writable by non-owner (040777), should be mode ...
0
votes
2answers
25 views

Need to fix admin group but can't get into recovery mode with grub_timeout=0

I've gotten myself into a bit of a unique situation. Somehow my main user got removed from the admin group and no longer has sudo privileges. However, sometime in the past I also set my grub_timeout ...
0
votes
1answer
24 views

How to halt system via script with no user input?

My system runs headless, starts when power is applied, and at the end of the boot automatically starts some software through a .conf file in /etc/init. This starts the script that starts the ...
0
votes
0answers
21 views

Huge /var/lib/apt/list (55.6 Gigs) [closed]

I just removed and recreated my directories for /var/lib/apt/list because they were taking up more than 50% of my hard drive. Question: how can I use sudo apt-get update without consuming the ...
0
votes
0answers
13 views

How can I set up Ubuntu to execute a command as root when a user without root privileger logs in? [duplicate]

I currently have Ubuntu (15.04) set up to boot to tty, and want to make it so that sudo service lightdm start is executed whenever a specific user (without root privileges) logs in. Is there a way to ...
0
votes
1answer
24 views

sudo dpkg i chntpw* is not working

I am trying to run sudo dpkg -i chntpw* while running Ubuntu from a USB drive on my PC. I get this message. (Reading database ... 169714 files and directories currently installed.) Preparing to ...
0
votes
1answer
17 views

User B can sudo to an user A (not root or group admin)

I'm newbie, so please help me : In system , only user 'execute_prog'(not in group admin) has permission to execute a program ABC. Now, I want that user B can sudo as 'execute_prog' to execute this ...
0
votes
1answer
42 views

how to change read only to rewrite , sudo mount - o remount,rw/ not working

I am trying to initiate a Ubuntu phone background change from the white origami background to a custom background. I am using this sudo code: sudo cp ...
4
votes
0answers
89 views

Is sudo -i less secure than pkexec?

I just heard that it isn't recommended to use sudo -i on GUI programs - because it's less secure. Is there any truth here - is there an advantage to this: sudo -i gedit /random/file.name over ...
1
vote
0answers
18 views

My root user account is not in the sudoers file [duplicate]

How do i add my root user name to sudeors file in my Ubuntu operating system, because i can not have access as a root user now.
1
vote
3answers
45 views

echo to file works only with sudo su

I am using the Jetson TK1 development board from NVIDIA which has Ubuntu 14.04 on it. It is a 4-core ARM system and by default, 3 of them are "offline" - ubuntu@tegra-ubuntu ~ $ lscpu Architecture: ...
0
votes
2answers
29 views

Run sudo commands from standard account

I've recently had an increased interest in how multiple users are handled in Ubuntu, and have hit an interesting problem: running commands as sudo from a standard account. If I run a GUI application ...
0
votes
1answer
53 views

Drop/Undo sudo privileges on .py file which runs inside a program which runs from sudo previleges

I need to run a program from sudo privileges and I am running .py file inside the program. So when my program runs from sudo then it automatically calls/runs the .py file with sudo. I am running file ...
0
votes
1answer
29 views

How to change sudo passwords [duplicate]

When I try to change a sudo password, it say it doesn't work even running the mount -rw -o remount / When you run that command it would say i worked from the root menu but would still be invalid when ...
0
votes
0answers
57 views

Sorry, user is not allowed to execute X as root on lt

Whenever I try to run a command from the termainal as sudo, I am now getting the error: Sorry, user {user} is not allowed to execute {command} as root on lt. lt is the name of my computer. The only ...
0
votes
2answers
40 views

How to use the terminal commands? [duplicate]

when I type any command the terminal asks for password and then when I write nothing show up .. how can I solve that ?
24
votes
1answer
1k views

Is it possible to enter password for sudo only once, and configure it to not require for password on other terminals?

I enter my first sudo command. I enter my password. For a while, I wont have to enter my password for subsequent sudo commands. Now the question. I am someone who opens a lot of terminals. It would ...
1
vote
1answer
30 views

How to use shell variables after doing sudo su

I am writing a script to fix a missing 'F' letter in a mail log file. The mail log file is continuously updating. I am getting a file name, after that I am doing 'sudo su' to get superuser access. ...
0
votes
1answer
29 views

How can I make the sudo GUI work without the admin group?

I have a group of users with sudo privileges. That group is not called admin. The users can use sudo on the command line without any problems, however, Unity GUI dialogs requesting root permission ...
0
votes
0answers
13 views

VMware: change file permissions for smb.conf

I am running Ubuntu via VMware on a windows host, i want to share a folder. When i try to edit smb.conf, i get the following error: (gedit:47899): IBUS-WARNING **: The owner of ...
0
votes
0answers
74 views

Gtk-WARNING **: cannot open display: :0 Problem !

when i am using ' root ' , I can't run any **** -_- and that's what the terminal show as a problem I try many thinks like gksu , sudo .. , pkexec , ... but no solution No protocol specified ** ...
1
vote
1answer
93 views

wget: unable to resolve host address ‘sudo’ [closed]

I'm new to these stuffs so I am asking this question. I'm trying to install Java v6 from terminal but I'm getting a couple of errors like: --2015-06-29 15:52:31-- http://sudo/ Resolving sudo ...
0
votes
1answer
55 views

How to add user to sudo group in ubuntu server [duplicate]

I tried to add user to sudoers with adduser username sudo, as well as in /etc/sudoers, but it cannot be change because is read only. Can someone help me please?
0
votes
0answers
23 views

Unable to login as root amazon ec2 instance

When I try to login as root in ubuntu using sudo su I get this error sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set I googled to solve it and I was suggested to logout from ...
0
votes
1answer
31 views

sudo unable to resolve host error message [duplicate]

I changed my hostname in: /etc/hostname And then also changed it with: sudo hostname MATRIX But I experienced a problem because (and I don't know if this is related or not) non of my ...
2
votes
2answers
90 views

npm -v return Segmentation fault

nodejs, npm works fine before. When I try to upgrade it sudo npm cache clean -f sudo npm install -g n sudo n stable And type npm -v, it throw "Segmentation fault". I restart system and I type a ...
0
votes
1answer
35 views

can't access the user account

Mistakenly I wanted to change the ownership or /usr and /etc and /home by chown -R username because I thought in this case, I won't see any error saying permission denied in installing softwares ...
1
vote
1answer
44 views

I changed the permission for /etc folder. Sudo is not working after that

I changed the permission for /etc folder to 777 with chmod. When I try to run Sudo after that it refuses to work. I found a few fix, such as going to recovery mode to fix things but recovery mode is ...
1
vote
1answer
48 views

Upgrade python packages with pip: use “sudo” or “--user”?

I have a question about installing/upgrading Python packages using the tool pip. I can either run sudo pip install -U PACKAGENAME or pip install -U PACKAGENAME --user What is the difference ...
1
vote
2answers
134 views

How to use sudo from a standard user?

If I try using sudo as a non-privileged user, I get a message that the user is not in the sudoers file. I know the Administrator password, but I do not know, how to use it from a non-privileged ...
4
votes
1answer
27 views

Who are incidents really reported to, and how can a sudo user access the reports?

When my non-sudo account tries to run a sudo command: nonsudo@Hairy14:$ sudo hello An incident is reported: [sudo] password for nonsudo: nonsudo is not in the sudoers file. This incident will be ...
9
votes
3answers
468 views

sudo permission doesn't time out durring apt-get upgrade

Consider this: You type $sudo apt-get upgrade and get a list of things that need upgrading with a "Y\n" confirmation. before you can read the list, and type "Y" or "n", the phone rings, or your boss ...
0
votes
1answer
72 views

User Groups Best Practices in Ubuntu Server

I reciently decided to manage my own web server (Ubuntu/Nginx) and as best practices I went and disabled the root user and created a new one with root privileges. When I created the new user I didn't ...
0
votes
1answer
34 views

No module named _curses

I am very new to both Ubuntu and python. I am trying to run a code and getting : ImportError: No module named _curses. I tried: sudo apt-get update sudo apt-get install build-essential sudo ...
0
votes
1answer
68 views

How to sudo git clone and safely change permission to another user

On Raspberry Pi, I log in as the default user Pi. I do a sudo git clone on a repository, because it needs to create directories. This is specific for DNU/DNX, because we cannot run sudo dnu restore ...
-1
votes
2answers
56 views

using a sudo command without a password for a certain app

I'm using a python script to run docker, but docker requires sudo commands to run and it's bad practice to store the sudo password in the file or give the whole python script sudo rights, I've seen a ...
5
votes
2answers
113 views

what 'sudo' means for root?

I'm running the following commands in Ubuntu 14.04: root@ubuntu:~# service rpki-ca restart stop: Unknown job: rpki-ca start: Unknown job: rpki-ca root@ubuntu:~# sudo service rpki-ca restart rpki-ca ...
1
vote
0answers
57 views

Enable shutdown from another computer on LAN without entering sudo password

I'm trying to execute this script from my laptop to shutdown the server without having to enter the sudo password. (Both are running Ubuntu 14.04.2 LTS) ssh -t lachlan@192.168.0.xxx sudo shutdown -h ...
0
votes
0answers
19 views

problem removing mysql

I am getting this error: E:Sub-process /usr/bin/dpkg returned an error code (1) At the end when i try uninstalling mysql using the command: sudo apt-get remove –purge mysql-server mysql-client ...