Questions related to the sudo command that allows users to run programs with the privileges of a different user (normally the root user).
0
votes
0answers
16 views
problem in sudo apt-get command
I am having a problem everytime I try to install something from the terminal:
If I type sudo apt-get install abc
it says: apt-get:
/home/xyz/MATLABInstalled/R2012b/sys/os/glnxa64/libstdc++.so.6: ...
0
votes
1answer
25 views
Error in installation directory
I'm trying to install my first linux package... what an oddysey.
After finding out what sudo is and sense what make file does, and losing a lot of time on the internet, I'm about to quit... Hopefully ...
0
votes
1answer
25 views
problem with PATH when using $su
OK, I'm having a bit of an issue with PATH and running a process as another user under Ubuntu.
First, we check where the bin is:
root@host:~# whereis start-stop-daemon
start-stop-daemon: ...
0
votes
0answers
11 views
init not found error
After losing power, my machine rebooted to this error:
“error: no init found. Try passing init=bootarg”
Per similar threads on this site and others, I've tried booting from a CD and selecting "Try ...
0
votes
1answer
30 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 ...
0
votes
0answers
17 views
How to make the graphical sudo offer a username option?
When logged in as an unprivileged user, without sudo permissions, choosing an option like "System -> Software Sources" produces a dialogue that asks the user for their password. Since the user is not ...
0
votes
1answer
39 views
sudo apt-get update leads to crash of terminal application
I try to run sudo apt-get update and the terminal freezes and a message pops up: Ubuntu experienced an internal error...
I am trying to work with OpenFOAM and all the times is asking me to update ...
2
votes
4answers
7k views
Unable to install files with apt-get: “unable to locate package”
I'm having issues with my ubuntu server version 12.04 installed on a HP550 laptop, when i try sudo apt-get install <programname>, e.g apache2 it will not work, saying E: Unable to locate package ...
2
votes
3answers
71 views
How to execute sudo commands with Expect & send commands in bash script?
Can any body let me know how to execute sudo commands with expect. I tried the following but this is not working. Can anyone give me suggestion please?
set login "sasuke"
set addr "hostname"
set pw ...
8
votes
3answers
311 views
How often is the password asked for sudo commands? Where can I set it up?
I execute quite a lot of sudo commands.
I noticed that if I execute one and then another one within few minutes, the 2nd time I don't get the message:
[sudo] password for my_username:
but I do ...
8
votes
2answers
12k views
How do I sudo without having to enter my password?
I'm trying to setup sudo without no password but still I get prompted for password, I'm using ubuntu, here is the relevant line from the sudoers configuration file :
gandalf ALL=(ALL:ALL) NOPASSWD: ...
0
votes
1answer
30 views
How to reset default permissions for /etc?
By mistake I have made permission changes for /etc. Now it's giving me the following error message:
bash: /etc/bash.bashrc: Permission denied
I have no name!@chandan-Inspiron-5520:~$ sudo ...
58
votes
9answers
4k views
Run same command again but as sudo
Sometimes when I run a command I don't notice that I needed to run it as super user to have enough permission.
Is there a way to run the same command again but as a super user?
3
votes
2answers
131 views
How do I give root privileges to an app?
I tried to submit an app to the Ubuntu Software Centre but it was rejected because you needed to put in the admin password to use it. I need to grant root privileges to the app for it to function so I ...
0
votes
0answers
7 views
userful(6.0.3) ubunthu product i'm using for multiseat.. How can i install code block inside this os?
I'm using userful (6.0.3) ubunthu product for multi seat configuration.. How can i install code block inside this OS??? In terminal i cant access sudo commond also
[root@Userful-Multiseat ~]# sudo ...
-2
votes
0answers
14 views
How to fix install? [closed]
so i was trying to install Linux Multimedia Studio and it will not let me
this is the code it tell me (The action would require the installation of packages from not authenticated sources.) i have ...
0
votes
1answer
63 views
Linux Basic Commands [duplicate]
I'm new here. I just want to learn the basics of Ubuntu Terminal !
I know the very basic commands like changing directory, renaming, creating & deleting files. I'm looking for commands like ...
1
vote
0answers
20 views
Sudo and Launcher icons not working, hard-disks not mounting
I am running a server on Ubuntu 12.04 (desktop) LTS. This has been working fine until today when a few minutes ago it decided to change some stuff alone.
Launcher icons not working
Launcher icons ...
0
votes
3answers
68 views
Error executing sudo in chroot environmet
I am facing a strange problem while using a chroot'd 12.04 Ubuntu. When I try to run anything with sudo I get the following error:
sudo: effective uid is not 0, is sudo installed setuid root?
If I ...
1
vote
0answers
41 views
Entry in sudoers
I need the following entry for a autoresponder/vacation plugin for roundcube with plesk:
www-data ALL=NOPASSWD: /opt/psa/bin/autoresponder
But the system doesn't recognize www-data as a user. Only ...
4
votes
4answers
130 views
How can I prevent a user from changing their password? [duplicate]
I want to prevent a user from changing their own password. Additionally, if possible, I want to prevent them from changing it via sudo.
20
votes
6answers
18k views
sudo error, is mode 0777, should be 0440
I am getting sudo errors, how do I fix this error?
sudo: /etc/sudoers is mode 0777, should be 0440
sudo: no valid sudoers sources found, quitting
27
votes
5answers
39k views
How do I add a user to the “sudo” group?
In /etc/sudoers I see this:
# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it ...
5
votes
2answers
2k views
Password not working in Graphical Applications (gksu)? Works with sudo
I am having a problem where when I try to run say GParted, when I am prompted for a password, it says "Incorrect Password"
But when I enter the same password using terminal sudo gparted for example, ...
0
votes
1answer
32 views
how do you make the scripts in /home/$user/bin accessible using sudo? [duplicate]
How do you make the scripts in /home/$user/bin accessible using sudo? as in:
sudo $NameOfScript
in using Ubuntu 12.04
2
votes
2answers
360 views
rm -i alias not working with sudo as root
I have noticed in all my Ubuntu servers the alias rm -i is ignored when you run sudo rm * as root. Is there something in sudo that is causing this behavior? I know you don't need to use sudo when you ...
0
votes
2answers
68 views
How do I restore Ubuntu's default interface?
When I downloaded and install nvidia drivers, both the top bar and bottom bar disappeared. When I removed them, some applications worked, but the bars are still missing and fancy shortcuts such as ...
0
votes
5answers
729 views
Firefox doesn't launch in ubuntu 13.04
Firefox starts when I use sudo in the terminal, but not from the launcher. All the other apps work like a charm, just not Firefox. How can I fix this?
0
votes
1answer
29 views
How to get rid off - sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins
I am trying to configure apache2 with cgi (python).
For that, I have to change permissions of some folders and files but I am getting sudo fatal errors every time I try to change the permission of a ...
-1
votes
1answer
44 views
How to get r/w permission for a directory for a particular user?
In my ubuntu server a directory named "softwares" is shared via samba for windows clients. The directory has only read permission. I am the system admin working on the ubuntu server. I am also not ...
1
vote
1answer
128 views
How to solve “sudo: /etc/sudoers.d is world writable”
How can I fix the following error with sudo?
/etc$ sudo
sudo: /etc/sudoers.d is world writable
usage: sudo [-D level] -h | -K | -k | -V
usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p ...
0
votes
2answers
651 views
How do I change system-wide default Java runtime without “sudo”?
Sorry for my bad English, but I'm really trying to be better.
Ok. I've created a new command/alias(changejava) on Ubuntu 12.04, and I need to skip "sudo password" only when I write "$changejava".
If ...
2
votes
1answer
56 views
Insufficient privileges when piping with sudo [duplicate]
I'me using ubuntu 12.04 lts on usb live stick for backup purposes of my ubuntu hd-installation before updating system. The backup usb-hdd is automounted when hotpluged, it gets something like ...
0
votes
2answers
1k views
sudo shutdown vs pressing power button
I have a headless Ubuntu server running 64 bit Ubuntu 12.04 server edition, and I connect to the server via SSH from my Windows laptop.
Sometimes when I would like to turn off the server and my ...
3
votes
2answers
31k views
How do I login as root?
I want to login as root, but when I enter
sudo -s
and enter password, this message is shown: "you are not in sudoers file", and when I enter
su
and enter password, this is shown: ...
1
vote
0answers
24 views
how to recover file and folder permission?
I made this mistake at the /usr directory
sudo chmod -R 777 bin
The next time i used sudo, it gives me this prompt:
sudo must be setuid root
What I did is copy and replaced this sudo thinking it ...
0
votes
1answer
29 views
Error Message while sudo apt-get -f install [duplicate]
Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
1
vote
1answer
44 views
Unable to run a sequence of commands using SSH
I am unable to use a couple of sudo commands while logging in through ssh. I am using the following command but its not working properly.
ssh hypr1000.opsr.com "ot=sudo virsh list --all |grep ...
1
vote
2answers
42 views
Where is the /etc/login.conf file in Ubuntu 12.10 and latest?
Where is the file for the general login for to configure it?
/etc/login.conf seems to be outdated in 12.10 ?
I want to adjust maximum number of login attempts. e.g. in sudo from 3 to 1.
same for ...
0
votes
1answer
54 views
Any way to get sublime text to save settings files without running as sudo
I installed Sublime Text 2 the following way, but what I do not like about it is that I have to run it as sudo to save the user settings files. Any ways around this?
Thanks,
Colin
sudo ...
2
votes
1answer
154 views
How do I make Youtube videos stream faster on my ubuntu?
According to this article, http://thetechblock.com/how-to-stop-isps-slow-youtube/, I can make Youtube videos stream faster on Linux, but I am not entirely sure how to carry out similar commands on the ...
0
votes
1answer
315 views
ubuntu 13.04 failed to start any GUI application as root
I just installed ubuntu 13.04 in family machine, and I faced strange problem
even though my sudo password is correct, I cannot start any GUI application (i.e. bleachBit (as root)) as a root, the ...
25
votes
5answers
3k views
Why is gksu no longer installed by default in 13.04?
I have always recommended pressing ALT+F2 and typing for example gksu nautilus or gksudo nautilus both are equivalent; to run graphical programs with root privileges. However, I have just installed ...
0
votes
1answer
24 views
sudo command not working in cron
I have a small script and I want to run it as user1 in cron. If I am logged in as user1 and execute the script it works just fine, but the moment I try to run it in cron it does not work. If I run the ...
-1
votes
0answers
67 views
PAM_TALLY and Faillog: Successful Sudo Counts as Failure [closed]
I am controlling login failures in /etc/pam.d/common-password and common-auth.
I am a sudo user, I can log in without issues, but when I try to run the Ubuntu Software Center to run updates, I'm ...
1
vote
3answers
6k views
Add AD Domain user to sudoers from the command line
I'm setting up an Ubuntu 11.04 server VM for use as a database server. It would make everyone's lives easier if we could have folks login using windows credentials and perhaps even make the machine ...
0
votes
1answer
70 views
'sudo' command is broken
I updated an old centrino-notebook after Ubuntu 9.10 with 12.04 - now
sudo seem to be broken, because after sudo <whatever> I get the error message:
sudo: unable to initialize PAM: No such file ...
0
votes
1answer
2k views
su: Authentication failure (Ignored)
Keeping in mind this was working before:
When I try to login as :
su jira1
I get error:
su: Authentication failure
(Ignored)
more /etc/passwd returns:
...
0
votes
1answer
72 views
sudo apt-get not working after a new install of ubuntu
I installed ubuntu last night. And after reading 100s of posts, I still couldn't make my sudo apt-get work at all. I remember, I have to modify the software server somehow. But I can't remember how or ...
1
vote
2answers
231 views
How do I add a user to sudoers file?
How to I add my username to the sudoers file?
On my ubuntu desktop, the sudoer file has only root.
so basically, I will just need to adduser to sudo file system.
And I need to access to single ...




