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
83 views

Allow any user to use shutdown with my own shell

First of all sorry if my english is not excelent but it isnt my native language. I have a project where I'm building my own shell (named MYSHELL). One of the tasks is to create my own built-in ...
2
votes
1answer
57 views

Is it possible to run an application as superuser within boot without input?

I have an Ubuntu 12.04 Desktop machine running as a server with no input devices accessible after initial setup. I need to place any application that I want to run within the boot process. I have one ...
1
vote
1answer
20 views

How to get the long 'less' prompt with sudo?

I have added the following to my user's .bashrc file to get a longer prompt in less: export LESS="-M" This is added to the root user's .bashrc file as well, so when I sudo bash to get a root shell, ...
1
vote
1answer
32 views

Booting in single user mode

On 14.10 holding shift at boot time doesn't bring up the grub menu. Is there another way I can boot in single user mode? I have bricked my sudoers file so I can't use sudo btw. I don't get a grub ...
1
vote
1answer
81 views

Ubuntu no longer prompts for root privilege (but doesn't give it either)

So on 14.04 LTS I was playing around with some settings to solve another problem, and somehow managed to screw things up and now Ubuntu no longer asks for root privileges before trying to perform ...
1
vote
1answer
39 views

How do I edit a system file when I am root user but I receive “you are not in the sudoers file”?

I am using Ubuntu 12.04(LTS) 64 bit. I have edited /etc/group and added my username erfan in front of vboxusers as following: root:x:0: daemon:x:1: bin:x:2: . . . erfan:x:1000: sambashare:x:124: ...
1
vote
1answer
90 views

Setting proxy in Ubuntu terminal - proxy having special characters

I am trying to set proxy for a ubuntu server 12.04. Our proxy user name contains in the format: CompanyName\UserName and Password like: $test I tried to set proxy like this: export ...
1
vote
1answer
125 views

Would like to use different passwords for initial login and sudo for encrypted home folder

I just encrypted my home directory using ecryptfs and the instructions from How to Encrypt Ubuntu Home Folder After Installation. In order to really benefit from the encryption, however, I needed to ...
1
vote
1answer
31 views

kdesudo - can it return before spawned process closes?

kdesudo doesn't return until the process started with it exits. So, if I want to start three processes all at the same time, I have to use three terminal tabs. I'd rather use one tab that returns to ...
1
vote
1answer
99 views

How to add Active Directory users as sudoers

I'm following this article. What I've done: I can connect to Active Directory I can login to the Active Directory Now what I'm looking for is a way to make any active directory user a sudoer. I'm ...
1
vote
1answer
623 views

Authenticating error with ubuntu 14.04 LTS

< Problem: Just as I upgraded my ubuntu 13.10 to 14.04 LTS. I couldn't pass keyring and bash authentication. I can login in recovery mood for both root and my account, but that's not the case in ...
1
vote
1answer
256 views

Cannot add ppa for gvfs-mtp

I am a total newbie concerning anything to do with Ubuntu/Linux. I am running 12.04 on VM Player. I am trying to connect my HTC One (Android 4.3) to Ubuntu, and looking online has told me to do: ...
1
vote
1answer
2k views

Permission problem with SFTP in FileZilla

Recently, we installed Ubuntu Server on our servers this is very new for us. However, we tried to setup a apache2 server which did work. But the problem is that we can't configure apache and other ...
1
vote
1answer
821 views

Adduser: group sudo does not exist

I am able to login to my account but can't do anything related to superuser now. Updates, sharing, sudo and all things say authentication failed. I tried to correct that by going in recovery mode and ...
1
vote
1answer
636 views

cannot start graphical programs with sudo

i have a fresh ubuntu 12.04 installation with encrypted home partition. i copied over my home folder from another computer. when i try to launch graphical programs via sudo i get errors like the ...
1
vote
1answer
126 views

How do I perform a backup of sudoers file?

After reading the following two posts: Trying to install an openVPN GUI messed up sudoers Standards accounts are able to get root access using sudo without password request I would like to learn ...
1
vote
1answer
2k views

Having Error message while using the “sudo nautilus” command in terminal

I am using Ubuntu 12.04 LTS (32 bit). When I run "sudo nautilus" command in the Terminal, this output appears: tushar@tushar-G41M-Combo:~$ sudo nautilus [sudo] password for tushar: Initializing ...
1
vote
1answer
537 views

Upgrading from 12.10 to 13.04 -> dpkg: error processing sudo (--configure)

Here's the deal and reason I'm asking for your help. Last night I went on upgrading my Xubuntu 12.10 installation to 13.04, so at tty1 I run the command sudo do-release-upgrade and everything ...
1
vote
1answer
294 views

Problem with Login Screen and Sudo Comand

I'm new to Linux world, infact I have installed Ubuntu 12.04 yesterday on my computer. I have Dual-COre processor, 2GB RAM, 500GB HardDisk, No graphics card and XP in parallel. I'm facing So many ...
1
vote
1answer
594 views

12.04 sudo testparm -s smb.conf.master >smb.conf fails on permsissions

When I run sudo testparm -s smb.conf.master >smb.conf bash: smb.conf: Permission denied I just need a simple samba configuration to share files among 4 linux machines behind a router on a very ...
1
vote
1answer
441 views

installing apache 2 in ubuntu

Hello I am new to ubuntu. I am trying to install Apache2 using "sudo apt-get install apache2" command.I have set my java path as per rules but still its showing me this following errors: sha256sum ...
1
vote
1answer
311 views

Only user can no more sudo and root account in safemode has password

I accidentally commented the line Members of the admin group may gain root privileges: %admin ALL=(ALL) ALL in /etc/sudoers file, now i am unable to sudo into my system using the only available ...
1
vote
1answer
900 views

Sudo user without the permission to edit sudoers

How can I add an user to sudoers list with all privileges, but that user should not be able to edit the sudoers file ?
1
vote
1answer
191 views

How to dial modem without sudo

I am using ixconn as modem manager because it has many more features than the default network manager. But it cannot be used without root privileges (i.e., sudo). How can I use ixconn to dial my ...
0
votes
1answer
17 views

GTK apps not respecting Kubuntu's oxygen-gtk theme when executed as sudo

I am using Kubuntu 14.10 and it's working quite well so far, but my problem is pretty much what it's stated in the title, when executing a GTK app that requires sudo privileges, such as Synaptic ...
0
votes
1answer
11 views

Start an appli with sheduled task not work

I have a seedbox unders a ubuntu desktop server. I run rtorrent correctly but if I restart the server I need to relaunch rtorrent with this command : sudo -i #mypassword" screen -fa -d -m rtorrent ...
0
votes
1answer
40 views

Run interpreted commands within sudo

The question is how to run generic commands which may contain ; && | < > << >> $ and so on within sudo. Possible solutions could be: To use interpreters within sudo sudo ...
0
votes
1answer
27 views

Why do I need sudo to run apt-mirror?

Why do I need sudo to run apt-mirror? Is there a way to run apt-mirror without sudo?
0
votes
1answer
39 views

I seem no longer to be a sudoer

On Sunday I let my son watch Netflix on my laptop as I was ill and in bed so couldn't watch it downstairs on the television with him. This may or may not be the root cause of my problem. Sudo no ...
0
votes
1answer
34 views

How to fix error temporary failure resolving 'archive.ubuntu.com'

I'm trying to install openvswitch on a Ubuntu VM(virtualbox) After executing sudo apt-get install openvswitch-switch I get the following errors: err http //archive.ubuntu.com/ubuntu/ trusty/main ...
0
votes
1answer
34 views

User stopped being sudoer after release upgrade

I've upgraded one of web server, that was running Ubuntu from 11.10 to 12.04 (No downtime since it's creation, though serving 10-40k requests/daily). sudo apt-get install update-manager-core ...
0
votes
1answer
52 views

How can I have Wicd connect to my wireless network without having to enter a password?

In the context of my earlier deleted question below: Everytime I run WICD (Network Manager) it requires my password for permission. I'm not against Ubuntu asking for passwords in general but ...
0
votes
1answer
62 views

Can't use sudo, gedit, i'm getting error in upgrading

sudo: unable to open /var/lib/sudo/username/7: No such file or directory W: Not using locking for read only lock file /var/lib/dpkg/lock E: Unable to write to /var/cache/apt/ E: The package lists or ...
0
votes
1answer
41 views

problem occuring while creating .exe file

I'm trying to run test problem in the mfix but got struck with an error sh: 0: Can't open ../../model/make_mfix. bhaskar@admin2-Precision-T7600:~/mfix/run/tests/Added_Mass$ sh ../../model/make_mfix ...
0
votes
1answer
43 views

Lost the root privilege after try to add the user to a group

My user lost root privilege after try to add the user to a group. It's looks like the "usermod xxxx --groups ..." change the from the root group to the new one, it's a mistake but the thing is my user ...
0
votes
1answer
28 views

wifi trouble shooting

I'm quite new to Linux. I am currently using Ubuntu on my HP Celeron laptop. I've been having trouble with my wifi on my laptop. I've tried pressing the button to activate my wifi but it doesn't seem ...
0
votes
1answer
108 views

start Ubuntu 14.04 with terminal

I have a system with a dual-boot of Windows 8.1 32-bit and Ubuntu 14.04 64-bit. Ubuntu usually works but after I became root with the command "sudo su" and rebooted my PC it had a Black screen after ...
0
votes
1answer
148 views

kdesudo does not work in Kubuntu 14.04

I recently installed Kubuntu 14.04, after which kdesudo seems to work only half the time. For example: $ kdesudo systemsettings kdesudo(29361) KDESu::KDESuPrivate::KCookie::getXCookie: No X ...
0
votes
1answer
291 views

setresuid operation not permitted when calling via php

I've got following Problem: my Apache and PHP script are running as user www-data. I want to call a script that can only be executed as root, so I added a new File to /etc/sudoers.d to allow this ...
0
votes
1answer
22 views

PROBLEM : when Update my system (in directory).

When I type sudo apt-get update in terminal that shows error like this E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory ...
0
votes
1answer
68 views

Starting mysql server problems

I am trying to get mysql (server?) to start. This is what I keep on getting: Rather than invoking init scripts through /etc/init.d, use service(8) utility, e.g. service mysql start THEN when I do ...
0
votes
1answer
91 views

Setup SSH keys to login as super user

I have a random question. I am new to SysAdmin side, so not sure if I am doing it right way or not. We have a sudo user setup called wladmin an host1. I login to host 1 as myself, then do following ...
0
votes
1answer
142 views

Sudo won't accept my password even with Caps Lock off and the right password

First, I just want to say that I did check for caps lock and I know for a fact that it was the correct password and everything was fully correct. I even entered the sudo command a second time and ...
0
votes
1answer
172 views

corrupted sudoers file, Ubuntu 12.04

My /etc/sudoers file is somehow corrupted and all the users who have sudo privileges are unable to execute ANY command with sudo prefix to the command ! sudo: parse error in /etc/sudoers.d/README ...
0
votes
1answer
112 views

Run “sudo service udev reload” without root priviledges

I have a script that occasionally needs to run the command "service udev reload" but cannot as it needs root access. I don't want to stay logged in as root all the time, so I'm wondering if there is a ...
0
votes
1answer
117 views

Notify-send won't show notification unless run with sudo

I have just tried to use notify-send on my 13.10 machine and can't get it to work without using sudo with it. I don't know what details can I provide with this issue. My notify-osd version : $ ...
0
votes
1answer
422 views

Clam TK and sudo freshclam

I have clamtk! Should I set clamtk for manual or automatic updates? Clam says that if my computer is receiving automatic updates then I should set the wizard at automatic I have no idea if my ...
0
votes
1answer
146 views

adding sudo permissions to NIS clienadding sudo permissions to NIS clients

I've configured a couple of ubuntu 12.04 servers with NFS and NIS like it was described in https://help.ubuntu.com/community/SettingUpNISHowTo and in ...
0
votes
1answer
22 views

Need Help regarding Finding tools

When I type command find / -name ??.conf the output is a lot of files such as : find : /home/simmer/local/share/gvfs.metadata : Permission Denied Don't get the desired result, And if I use the ...
0
votes
1answer
139 views

how to make /usr/lib owned by root again

I chowned -R username /usr/lib and now i cannot sudo or do any thing really due to sudoers.so belonging to username. How do i fix this and make /usr/lib owned by root again?