0
votes
0answers
12 views

How do i give the anonymous pipe to a file root privileges [duplicate]

If i go the a root owned directory (let's say root) and type: sudo echo test > test i get the following error: bash: test: Permission denied So the pipe does not keep the same user as the ...
5
votes
0answers
111 views

Access to /dev/ttyUSB0 and sudo

This is my first question here. I am running Ubuntu 12.04 and have an application accessing the USB port of computer. My Ubuntu username is gadu. Until today, i've always used the following command: ...
16
votes
1answer
1k views

What does su > echo “<username>” mean?

When I was entering the command su > echo "sachin" it was asking for a password. When I gave my password, some strange things happened as you can see: One more thing: there is another user, ...
0
votes
0answers
16 views

Questions about checking for badblocks on a almost-definate bad HDD, I am new to Ubuntu

Heres the deal, I'm on an Asus x53sv-mh71, it's my friend's laptop. He dropped it about a month ago, and it stopped working about a week afterward. Wouldn't boot past the "starting windows" logo. I ...
4
votes
1answer
81 views

How to automatically opening terminal windows & tabs, ssh and sudo su?

When I start my day in front of my computer, I first have to do the following: In workspace 1: Open a new terminal window, ssh loginserver, then ssh serverA1 and sudo su account00 Open a new ...
0
votes
0answers
25 views

I can't get into the sudoers listings [duplicate]

I try to type a command, to get Pinta (because GIMP isn't here for some odd reason) (Command is sudo add-apt-repository ppa:pinta-maintainers/pinta-stable/ubuntu), and it says asbell is ...
0
votes
1answer
58 views

How does sudo!! work on Ubuntu

I love the idea behind the command: sudo!! but it doesn't really work on ubuntu (14.04 and earlier). When I type apt-get install htop It will obviously tells me to run the command as super ...
1
vote
0answers
117 views

Cannot chown or chmod using sudo anymore

I was trying to make an adjustment to the /etc/sudoers file, and I accidentally corrupted it. I restored it via the grub and using the Ubuntu 14.04 default. But now it seems I can change ownership ...
1
vote
1answer
71 views

uTorrent server only working with 'sudo -i' option

Apparently it's not a working/not working issue. I have setup uTorrent server in my Xubuntu 14.04 following these instructions. How do I install utorrent on ubuntu 14.04 other instructions seem ...
0
votes
1answer
80 views

block certain dangerous commands?

In my High school there are few computer having Ubuntu 14.04 installed and many students know the Root password, how can I block/disable certain dangerous commands like :- rm -rf / rm -rf * ...
0
votes
0answers
25 views

How to skip entering password for sudo i.e. prepare script with permissions? [duplicate]

For work and other situations as well I'm running all sorts of sudo commands. Thank god (and devs), they can be run from Unity Laucher :) . But as a lazy timesaver I want these commands permanently ...
2
votes
1answer
72 views

Bash script using `sudo` runs correctly from cli but not when clicked to run

I am trying to get a simple bash script to run when I click on it. It runs perfectly from the cli but starting motion with sudo fails to start. I have that script setup with sudoers already for ...
0
votes
1answer
73 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 ...
1
vote
1answer
70 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
2answers
48 views

Shell scripting, [duplicate]

I made a simple update script. Now My question was is it possible to run it automatically by loggin in on the Ubuntu Desktop and automatically provide my password (sudo) for this so I don't have to do ...
0
votes
1answer
35 views

don't have permission or doesn't exist

I'm trying to configure an Oculus rift and I have a configuration script that needs to be executed: GLADOS@deathbox:~/Desktop/OculusSDK/Tools/OculusConfigUtil$ ./OculusConfigUtil_i386 bash: ...
2
votes
1answer
122 views

How to run backintime as a user

To allow users to run backintime. I am usually running backintime-kde on ubuntu in the following way: sudo su ssh-agent bash backintime-kde4 --config /root/.config/backintime/config --profile-id 1 ...
0
votes
0answers
22 views

Can't start sublime with gksu [duplicate]

After typing gksu subl or gksudo subl, it asked for my password. But after that, nothing happened. Do note that, with sudo. It works. Why is that and how to fix this?
2
votes
3answers
131 views

Completely Messed up sudoers file and su Operations

I am in a really bad condition right now.I am jotting down the steps I did to get myself into this situation. My objective was to disable sudo on my machine. I am running Amazon Ec2 Ubuntu 12.04 I ...
0
votes
0answers
24 views

the command sudo apt-get update doesn't work [duplicate]

I am trying to install wine, but something always goes wrong and it tells me to run that command to resolve some problems. I try to run it and I get this "The method driver /usr/lib/apt/methods/https ...
3
votes
2answers
238 views

add alias to root

I need to execute a command for my system to search for new sd cards and to be able to execute it I need to me logged on as root. Simply using sudo with the command does not work. This is not a ...
3
votes
2answers
235 views

Sudo error, setuid [duplicate]

I'm using Ubuntu 14.04 and I run some command series on Terminal. But at one time I ran sudo chmod 777 /usr/bin/ -R And giving some permissions on this directory. After that, I'm continue my work, ...
0
votes
1answer
450 views

Run Task Manager In Xubuntu as Superuser

I am trying to change the priority of a process in my system via Xubuntu's Task Manager by typing sudo taskmgr, but taskmgr isn't the name of the executable. What is the name of the executable program ...
1
vote
2answers
183 views

Run program as root without using sudo

Can someone help me to run a ".run" on Ubuntu 12.04 LTS. My problem is I want to execute this program as super-user, but I don't want to use sudo to run it. I just want to run with ...
4
votes
1answer
249 views

Why does the terminal not hold my root password for sudo? [duplicate]

I stopped using Ubuntu for a while (since 12.10) and recently came back to it. From what I remember, it used to only ask for the root password once for a terminal session (for sudo commands). Now it ...
0
votes
1answer
71 views

What does the 'sudo -s' command do, and how is it used in this example?

I have the following doubt. In a tutorial related to a software installation that I am following say that I have to execute the following commands (I am doing it into an ssh shell, so this list of ...
0
votes
1answer
119 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 ...
4
votes
4answers
3k views

How to avoid prompt password for sudo?

I know I can go root (super user) via the su command but I have to authorize it after firing the commands. Is there a way I can go root and authorize (with password) in one line
0
votes
3answers
43 views

Append an output of a command to a txt file and place it in non writable directory?

If i try for example : directory A i don't have write permission on it sudo ls -l > /home/A/a.txt bash: /home/A/a.txt: Permission denied Then how can i do this trick , any Suggestion is ...
1
vote
1answer
88 views

Why I got 'unable to resolve host' when I do 'sudo'?

Whenever I do 'sudo' I get an error saying 'sudo: unable to resolve host HP-Pavilion'. I recently change my hostname to "HP-Pavilion". I wonder if I screw up something. $ sudo mkdir SourceCodePro ...
0
votes
1answer
41 views

Repair filesystem permission

I accidentally executed sudo chmod -R 777 / I was actually trying to change a specific folder permission recursively, btw i did stop the command before it changed everything. But now, i can't ...
-1
votes
1answer
58 views

Where can I find the sudo commands to work on the ubuntu grub file?

I am a newbie and need help with the sudo command. I am trying to edit the grub.cfg file via the etc\default\grub. The problem is that I don't know the sudo commands, particulary, the permission ...
0
votes
2answers
77 views

What is sudo -i [duplicate]

What does this command? sudo -i? I'm not sure if I should have made a post with just this question, but since I'm a Linux newbie and I have a lot more questions and doubts, I decided to go ahead and ...
1
vote
1answer
27 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 ...
0
votes
1answer
221 views

sudo: editor: command not found

I am trying to install gitlab on my server but when I run this command: sudo -u git -H editor config/gitlab.yml then I get: sudo: editor: command not found cn you guys tell me what is the wrong ...
0
votes
1answer
278 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
223 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
70 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
673 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 ...
5
votes
2answers
683 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
162 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) ...
3
votes
2answers
73 views

Issue when sudo something after a hostname change

I was tired of my system's name so i decided to change it. I gksudo gedit /etc/hostname and changed my first and never touched computer name to a new one. Then now when i sudo something like sudo ...
1
vote
2answers
951 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
80 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
403 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
85 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
161 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
47 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
65 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
402 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 ...