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
2answers
740 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?
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
572 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
42 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
46 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
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
151 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
30 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
124 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 ...
5
votes
1answer
136 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
22 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
152 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
121 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
107 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
83 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 ...
1
vote
0answers
2k 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
48 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 ?
25
votes
1answer
2k 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
66 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
51 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
29 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
178 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
696 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
405 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
74 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
195 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) none of my ...
2
votes
2answers
894 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
79 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
154 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
278 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
230 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 ...
5
votes
1answer
119 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
545 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
285 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
269 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
376 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
243 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
155 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
139 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
23 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 ...
0
votes
0answers
240 views

Problems with sudo apt-get update

I am new to Ubuntu and I have a problem installing, updating, etc. a program. The VirtualBox network is NAT. The type of adapter is PCnet-FAST III (Am79C973). For example: :~$ sudo apt-get update ...
1
vote
1answer
147 views

launch ipython but not like root

ipython is launched like root (UID); ok, but I need that after ipython cann't run and don't allow, script/code that can gain root privilegies. eg I launch ipython, ok the UID is root. And in my ...
6
votes
2answers
408 views

Why can I remove a file as user which is owned by root?

As the title says: Why can I remove a file as user wich is owned by root? Here is an example: % sudo touch ~/test % ls -la ~/test -rw-r--r-- 1 root root 0 Jun 18 20:31 /home/aboettger/test % ...
1
vote
1answer
90 views

can't resolve 'ph.archive.ubuntu.com'

I am trying to install cmake and it said try running sudo apt-get install cmake. Then I entered Y but after a while the terminal displayed can't resolve 'ph.archive.ubuntu.com'. Is there really an ...
2
votes
0answers
86 views

Problem installing reader software for Estonian ID card for ubuntu 14.04

I updated my ubuntu 13.10 to 14.04 and now I have problems to install Estonian ID card reader software. When I trie to use the installation script, that I have downloaded from ...
1
vote
1answer
2k views

Sudo comes up with an error, cannot run anything as root

For some reason, when I try to run any programs (I am trying to run a rootkit hunter: rkhunter) as root on the command line with sudo like this: sudo rkhunter Then I get this message: You must be ...
0
votes
2answers
53 views

Syntax error when add user in sudoers

I am going to execute all commands without sudo and entering password.So I added: user All = NOPASSWD : ALL But it shows me syntax error.
2
votes
1answer
99 views

How do I enable my application to write in home/**user**/.config?

I recently downloaded Sublime Text and when I entered the license into it. It replies Unable to write license file: /home/scaffrey/.config/sublime-text-3/Local/License.sublime_license and then ...
0
votes
0answers
39 views

I cannot access removable media in Ubuntu 14.04

When I inserted a pen drive and attempted to open it, it said that I don't have enough permissions to view its contents. When I used the command: "sudo nautilus" I was able to view its contents. I ...
5
votes
1answer
412 views

How to get sudo to prompt you for a password each time

I find that if I execute something using sudo that then if I execute something else soon after also using sudo, that it does not prompt me for my password, and although this can be inconvenient in ...