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
85 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
33 views

SU setgid: PERMISSION DENIED, SUDO: PERM_ROOT 0, -1, 1 PERMISSION DENIED

Hi I have a problem that I cannot solve. I cannot log into root, su, or sudo. Everything works fine via ssh so I tried on ssh via putty: Set root password: sudo passwd Add user to sudo/admin ...
1
vote
1answer
49 views

Can not excute commands with sudo

I forgot Ubuntu user password, after referring articles on how to reset user password, I could reset the password for the user. passwd menuka from the recovery mode. However, I tried the new password ...
1
vote
1answer
22 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
56 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
49 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
97 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
141 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
32 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
116 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
668 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
283 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
976 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
671 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
130 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
544 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
295 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
638 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
452 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
319 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
912 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
193 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
10 views

Asks password when trying to install Boot-Repair

I'm trying to install Boot-Repair directly from Lubuntu, but after typing the line "sudo add-apt-repository ppa:yannubuntu/boot-repair" in the terminal (as suggested here: ...
0
votes
1answer
19 views

How can I get a .sh file to run as Sudo in profile.d?

I have a .sh script that needs to run to check if a machine has had certain parameters set. I've placed it in the profile.d directory but I need this script to run with sudo privilege. Does anyone ...
0
votes
1answer
22 views

Why the PHP software is not getting updated to the latest stable released version?

I'm using LAMP on my local machine which runs Ubuntu 12.04. Currently I'm using PHP 5.5.20 on my machine. Following is the command I run from the terminal and below that is the output: ~$ php -v ...
0
votes
1answer
39 views

How do I switch back to Windows 8?

Okay so I am taking an online course to learn Linux and Ubuntu. On my desktop that has windows 8.1, I downloaded Ubuntu and then watched a couple of videos to make sure that I partitioned the drive ...
0
votes
1answer
30 views

Any program that use Java needs to be run under sudo?

I have installed a program that needs Java and I've changed to different Java runtime (Oracle). Now every use of java needs to be run from the terminal under sudo. I needs to make it to use Java ...
0
votes
1answer
132 views

Update alternatives java for all users

I'm using ubuntu 14.04 with multiple java versions on it. I'm trying to change the current java version for my user with: sudo update-alternatives --config java sudo update-alternatives ...
0
votes
1answer
45 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
15 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
49 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
29 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
41 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
92 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
39 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
74 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
71 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
49 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
128 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
179 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
24 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
77 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
113 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
179 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
212 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 ...