-1
votes
0answers
13 views

using Sublime Text 2 without having to open as root

I'm trying to figure out how I can run sublime text 2 without root. I have been told prior to use the command gksu sublime & and that has been working, but all the files that I create from within ...
0
votes
0answers
34 views

How to make sudoreplay work?

I recently discovered sudoreplay whose manpage says that it replays sudo session logs. But I am not sure how do I make it work. For whatever little commands I ran it kept on saying that ...
3
votes
1answer
96 views

Why don't the commands 'sudo bash' or 'sudo -s' ask for a password? [duplicate]

Even when I am logged in as a non-admin user, when I enter sudo bash or sudo -s, the system does not ask for any password. In the command history, I have not entered any password for sudo earlier ...
2
votes
1answer
46 views

How to give a quicklauncher or shortcut administration privilege?

I have a quicklauncher in a plasma widget (which is the same as a shortcut) which runs a command which needs administration privilege. I use the quicklauncher frequently and do not want to type root ...
0
votes
1answer
101 views

How do I add a standard user into sudoers' file using `echo`? [duplicate]

I am using Ubuntu 12.04 and I was doing through a terminal tutorial. There was explained about echo command and he mentioned something about adding your name to the sudoers file using echo >>. I ...
4
votes
2answers
286 views

How do I make a sudo command start at start-up with a 1 minute delay?

I would like to make a sudo command (sudo service smbd restart) run after 1 minute of being logged on. How would I go about doing this? P.S. This is a system with no monitor, mouse, keyboard or ...
0
votes
1answer
83 views

Default sudo settings did not require password

This is for a 12.04 ec2 instance. In the man pages it says the default should be to require a password when using sudo. I thought by setting the ubuntu's account password (in case it wasn't set) ...
0
votes
1answer
319 views

Vagrant Up and annoying NFS password asking

Sorry for the language mistakes I've made. I'm trying to prevent vagrant asking the password when it mounts shared folders by NFS: [server] Exporting NFS shared folders... Preparing to edit ...
0
votes
1answer
46 views

Why do I need administrative privileges to use chsh?

I was working on a Ubuntu system where I did not have administrative privileges, and I couldn't change shells (from tcsh to bash) using chsh. I solved the problem writing in the .tcshrc to open bash. ...
2
votes
2answers
219 views

iwconfig doesn't report Link Quality unless run as sudo

I'm running Ubuntu 13.10 on a late 2013 Macbook Pro Retina (booted via Refind). My issue is that running iwconfig doesn't output Link Quality or Signal Level unless run as sudo. me:~$ sudo iwconfig ...
1
vote
1answer
36 views

Strange terminal navigation when logged in as new user

I am not even sure how to ask this properly.. I am using EC2 Ubuntu 12.04 I added a new user sudo useradd -g admin admin sudo adduser admin sudo Changed shudders so I can use new user without ...
1
vote
1answer
74 views

“sudoing” strategy for python script on ubuntu

I'm creating a small router program (GTK frontend) in python for some of our less CLI savvy users. I've developed the glade front-end and able to connect the various signals. Now, I'm facing only one ...
2
votes
2answers
41 views

Independence between sudo and the instruction it receives as an argument

I don't understand why the directory dir1 isn't shown with the same colour. Although this may look unimportant, it seems to me that this is a violation of the so oftenly mentioned principle of ...
0
votes
0answers
64 views

How to make a command execuitable without root previlages? [duplicate]

I want to make some commands,such as ntpdate,shutdown etc, to execute without asking me for a password or without using "sudo" for "all users"(even normal users who have no sudo privileges) . I want ...
1
vote
1answer
187 views

Sudo does not recognize my password anymore

The problem is happening on a remote server, so everything is done through ssh. I can login with my key, no problem here. I can change my password at will with passwd (which I believe shows that it's ...
2
votes
3answers
384 views

Run a specific sudo command without a password in Ubuntu 13.10

I would like to run vagrant without being prompted for a password. As this post suggests, I used visudo to add the following line to my sudoers file. john-moz ALL=(ALL) NOPASSWD: /usr/bin/vagrant ...
1
vote
1answer
159 views

Opening Sublime Text 2 from Terminal Problems

When I run the command sudo sublime from my terminal, it opens the program but will not allow me to run any other commands in my terminal until I close sublime text. This doesn't work because I'm ...
2
votes
2answers
353 views

history doesn't display as sudo user

On a few of my ubuntu installations, when I run sudo su and become sudo user, I can type history and view a list of commands run as sudo user. However, on my one ubuntu installation, for some reason ...
0
votes
0answers
59 views

Why I am not able to update my system with sudo apt-get update command? [duplicate]

I am trying to update using sudo apt-get update, but it do download some packages but after some times I get the following errors W: Failed to fetch ...
45
votes
6answers
3k views

What does `!!` mean in `sudo !!`?

I am a user of Ubuntu with not much experience and I have been using sudo. What does sudo !! do and how?
7
votes
1answer
8k views

'sudo su -' vs 'sudo -i' vs 'sudo /bin/bash' - when does it matter which is used, or does it matter at all?

When I'm doing something that requires root be typed in dozens of times in a row, I prefer to switch my session to a root session. In the various tutorials and instructions I have used on the ...
2
votes
0answers
119 views

How do I reinstate my admin user privileges to global read/write

I am running Ubuntu 12.04 LTS. I only have the one user which I created when I installed Ubuntu. Everything has been fine - love it - until I updated a software package recently from the command line ...
1
vote
3answers
36 views

Issues running commands

Every time I run a command I get this back. E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock ...
5
votes
1answer
469 views

How to check if sudo password has been entered for this terminal session?

As said in the headline, I need to check if the sudo password has been entered for this terminal session in a shell (aka, if I have sudo rights now). If I have it, I would like to do one thing and if ...
0
votes
0answers
25 views

re-enabling an account

i need help on how to re-enable an account, my computer admin disabled my account, which means i cant perform the sudo command without a password, i keep asking him to put my password back, but he ...
3
votes
2answers
9k views

Launch Sublime Text 2 from terminal [duplicate]

I am new to Ubuntu and is trying to configure my environment so i can launch Sublime Text 2 directly from the terminal. I followed the solution on this post but no luck so far. These are steps I did ...
1
vote
1answer
937 views

Sudo su setting default password automatique [duplicate]

I'm a newbie linux (Ubuntu) user and i have a question to sudo su, I always like use the root in the shell for no annoying privilgies errors :) But the problem is sudo su always ask me for a password ...
4
votes
1answer
549 views

What does this code do if entered in a terminal?

sudo add-apt-repository ppa:langdalepl/gvfs-mtp sudo apt-get update Then, launch Software Updater (previously known as Update Manager) and install the available updates. After you update everything ...
0
votes
3answers
3k views

Not able to install *.run file in Ubuntu? [duplicate]

I am newbie with Ubuntu and I am using Ubuntu 12.04.3 LTS version inside Windows using WUBI. I have to install few softwares in Ubuntu which are as follow: MPLAB X IDE version 1.90 XC8 Compiler and ...
0
votes
1answer
1k views

Trying to update but not enough space on boot (answer here) [duplicate]

The error message I get suggests "sudo apt-get clean" I try running it but nothing happens. Just get back to the prompt. Is there any other terminal commands I should try to clean temporary files ...
0
votes
1answer
510 views

why sudo gem install fails but gem install succeeds?

I simply do sudo gem install sqlite3 and have response: sudo: gem: command not found Then I do gem install sqlite3 and it works. Where is the problem with sudo ?
24
votes
4answers
3k views

How to get out of “sudo -s” command in Terminal?

I entered sudo -s command in terminal, and the it changed from shameek@shameek-K55VD:~$ to root@shameek-K55VD:~#. Now when I click on the close terminal window icon it says, "There is still ...
0
votes
2answers
467 views

What is the answer to “are you root” when installing packages?

What is the answer to "are you root" in Ubuntu 12.10. I was installing the restricted extras for the 12.10 when I got this message after typing my password. I typed yes and now all I see are y in the ...
1
vote
1answer
835 views

Won't execute terminal commands

I have been using Ubuntu 12.04 for quite a while and have never had a problem come at me out of the blue like this. I'm trying to install python 3.2 on my Ubuntu system and every time I run the code ...
2
votes
2answers
226 views

Why doesn't $HOME change if I use sudo?

I expected the -H option to give me the target user's environment. nbest@geo:~$ sudo -H -u tanum echo $HOME /home/nbest nbest@geo:~$ sudo -u tanum echo $HOME /home/nbest nbest@geo:~$ sudo -i -u ...
2
votes
1answer
105 views

Why my gnome terminal is set to root by default?

When I try to open up a new terminal in Ubuntu to do some operations, it always defaults to an admin based terminal with [sudo] password for xxxxxxxx: $ I need a regular terminal. How do I do this? I ...
12
votes
4answers
2k views

What is the functional difference between sudo su and sudo -i?

Why is one preferred over the other in this example? sudo su echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi.conf exit Please provide links to Ubuntu documentation.
0
votes
1answer
350 views

.sh file is not running changing directory command

my contents of .sh file are sudo -i cd /home/madhu131313/Documents/ I run it ,then it asked for root password, it changed to root, but it doesn't execute the changing directory
0
votes
2answers
737 views

Run a Python Script on Login with Sudo

I am setting up a machine that's sole purpose is to run a specific python application that uses a curses ui. That being said, there are some aspects of the application that require it to be run as su. ...
0
votes
1answer
649 views

What actually yum does? [closed]

I've seen that yum command for Cento OS Red Hat Linux platform. But, I tried with sudo too and it was works. I want to know then what yum actually does? I am just qurious to know?
1
vote
2answers
496 views

How can I delete everything off of my SSD hard drive, or namely the grub loader?

I'm currently using a live CD and I am attempting to delete everything off of my harddrive. So, I've used the command sudo nautilus and attempted to delete everything off of my SSD. However, I cannot ...
2
votes
2answers
994 views

I can't find my user password or change it

In the terminal, whenever I try to perform sudo, Ubuntu asks my password and it always says I typed it in wrong. I tried changing the password as root, but then it says password unchanged. My user ...
-2
votes
2answers
3k views

what is sudo tar -xzf? why it is used?

I need to know the extensions of xzf and its usage.is it necessarily to be used in installing a software? sudo tar -xzf utorrent-server-3.0-ubuntu-10.10-27079.tar.gz why this is used?
0
votes
1answer
2k views

Some index files failed to download [duplicate]

When I ran sudo apt-get update then I found some error. The Error is like below: W: Failed to fetch cdrom://Ubuntu 13.04 _Raring Ringtail_ - Release amd64 ...
0
votes
0answers
143 views

First time using OpenVPN on Ubuntu

I am new to using Ubuntu and OpenVPN. Below are my questions: In Microsoft Windows, the files in the config folder have the file extension ovpn. I understand that in Ubuntu, I will have to change ...
1
vote
1answer
943 views

I need to use sudo for any Hadoop operation, how to change permissions?

I am self learning Hadoop, starting yesterday. For the purpose of learning, I have set up Ubuntu 13.04 64-bit on VMWare Fusion on my MacBook Pro. And I am following this excellent tutorial. Before ...
2
votes
2answers
835 views

How can I run sudo gedit as gksu gedit

I'm looking into ways of automatically loading Gedit as gksu gedit when I enter sudo gedit by mistake? I have found that I have made a number of files unreachable by using gedit and I have only just ...
0
votes
1answer
340 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
1answer
454 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 ...
66
votes
9answers
6k 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?