0
votes
0answers
15 views

Can't get file to copy from /sys/ on rooted Android [migrated]

I'm currently rooted on a Samsung S3 i9300 running a custom rom on Kitkat 4.4.2 I use es file explorer to perform root tasks on directories and files, I wanted to permanently turn off the led lights ...
21
votes
5answers
2k views

Sudo vs root; any actual differences?

I'm working with a support member for a product, and he insists that I need to be root to install a series of patches, and that sudo won't work; he doesn't provide a reason but seems very firm in his ...
0
votes
0answers
51 views

Can't sudo when logged in with ssh

I set up a ubuntu machine on my local server. I've got a user with sudo privileges (same password as for login). I've got passwordless ssh going by putting my rsa public key on the ubuntu machine. So ...
0
votes
1answer
67 views

Regain access to Ubuntu server

I did a stupid mistake on my Ubuntu virtual server (Amazon). I was messing around with /etc/passwd & /etc/group files and i am about to lock my self out of the server for good. I have a copy of ...
0
votes
0answers
25 views

program needs to be run as root by any user and can be located anywhere

I have some program called foo that needs root privileges when it executes. foo needs to be able to be run by any user and can be located at any path. The reason this program can be at any path is ...
2
votes
1answer
131 views

difference between root executing command as sudo vs not using sudo?

I have a Linux question regarding the sudo command and the root user. If I log into the root user using the su command, what is the difference between the following two commands? root> sudo ...
0
votes
2answers
1k views

How do I fix an invalid /etc/sudoers file if root access is disabled?

This pertains to my Raspberry Pi, on which I have Raspbmc installed. I do realize that there is a Raspberry Pi StackExchange site, but I figured I might get more eyes on this problem here. The issue ...
0
votes
0answers
66 views

Run a specific program with root privilges without asking for password everytime

Many times, i need to connect modem using SAKIS-3G script and because modem-manager sucks many times. I need to supply admin/root password, everytime i need to run sakis-3g script. I am the only ...
1
vote
1answer
1k views

Can't install Parallels Tools on Debian 7.2.0

(Parallels Desktop 9, latest version) As per instructions, I switch to root: $ su - root $ whoami root $ echo $EUID 0 and then execute the installer: $ cd /media/cdrom0 $ ./install and I get ...
3
votes
1answer
162 views

How does sudo actually work?

How is it possible for sudo to actually function? If it's just a normal program, couldn't you make the same thing without requiring the user to authenticate, giving anyone with access to a computer ...
0
votes
2answers
116 views

Using the root account on a single-user system [closed]

On Linux systems it is widely considered a best practice using the root account only on occasions that necessitate administrative privileges, or disabling it altogether and relying solely on sudo to ...
2
votes
1answer
1k views

sudo: must be setuid root

I rented a server (ubuntu 12.04). They gave me a root user account. Next, I went in and created a new user using: # adduser <newusername> And added a password. The new user account works ...
1
vote
1answer
733 views

SSH: remote switch user and execute command under this new user

I am able to connect to remote machine using public/private keys (without password) as user wakatana. On remote machine I am able to issue: sudo /usr/bin/rootsh -i -u root then I type root's password ...
0
votes
1answer
572 views

How to add yourself to sudoers list?

I was trying to install a package using the command: sudo apt-get install ruby-rvm But I'm prompted with nish is not in the sudoers file. This incident will be reported. I tried to add myself ...
-1
votes
1answer
237 views

Preventing execution of sudo rm -rf /*

Do any Linux distros prevent the execution of sudo rm -rf /* so that people do not accidentally delete their hard drives if they did not know what they are doing?
0
votes
1answer
162 views

Sudo password not required? OS X 10.8 (Mountain Lion)

I recently upgraded to a Macbook Pro Retina running OS X 10.8.3. I was going through the process of installing various command line tools when I noticed that it wasn't asking for my root password when ...
0
votes
3answers
93 views

What types of users can I use with “sudo”?

I thought you could only use sudo to temporarily become root: sudo vim /etc/resolv.conf But recently I saw a shell snippet depicting a user using sudo to become a specific user: sudo -H -u devops ...
0
votes
1answer
236 views

How to config sudoers file?

I'm using ubuntu server 12.04 LTS I want to know how to configure my sudoers file (obviously, using visudo), to permit an user to run commands like root (doing something like "sudo service x ...
1
vote
2answers
659 views

Does sudo really make you root for a little while?

On Linux, in what kind of situations, if any, running a command as a non-root to access a file/folder or create/delete a file/folder using sudo may result in "permission denied" while running the same ...
0
votes
1answer
211 views

Why does a new terminal get automatically closed?

Every time I open a new terminal it gets automatically closed. I'm running Arch Linux, and Xforce4 terminal. $ terminal --execute sudo arpspoof -i $(cat var.log|awk '{print $1}') \ -t ...
4
votes
4answers
685 views

Is it possible to change the ownership of an executable to root using sudo?

I have an executable created by my userid that I need to have run as root. Therefore I need to change the ownership of my executable to be root:root and use setuid. When I attempt sudo chown ...
3
votes
2answers
3k views

Any way to use sftp as superuser?

I'm using Transmit.app (in Mac) to sftp to my Ubuntu server. Is there any way to gain superuser permission so that I can remotely write any file?
1
vote
4answers
462 views

Do superuser things with normal user

EDIT Read answer of janos below. It's more use SSH-keys to access a root directly. I want to secure the SSH access to my server. One thing I read everywhere is to disable the root user login. ...
1
vote
1answer
484 views

sudo command trying to search for hostname

Recently, I have changed the sudoers file and the hostname through /etc/hostname. After changing this files, my sudo command is taking a lot of time. Also, it says sudo unable to resolve host ...
1
vote
1answer
163 views

sudo not working alongwith su

I am using a Ubuntu system. Today, I accidentally changed the sudoers file in /etc due to which my normal user prathmesh is not able to perform sudo operation. I don't know how to go to the root mode. ...
4
votes
3answers
1k views

Running chrome in Backtrack Linux

I am using the Backtrack 5 linux distribution, and i wanted to install chrome, but it wont run as root for default. I know that using --user-data-dir will let me run it as root. But is there a safer ...
0
votes
2answers
4k views

How to restore sudo privilege with Linux live CD?

I'm running Linux Mint 11 and I lost the privilege to use sudo, apparently the result of accidentally removing myself from the admin group. When I use the groups command to list the groups I'm in, it ...
1
vote
1answer
404 views

Can I tell if Root / Sudo has been used/accessed

Would it be possible to check if the root user (or sudo) has been accessed on my server. I ask this because I am creating a server monitoring tool and I wanted to know if there was a way to check ...
3
votes
3answers
2k views

How do I run bash scripts as root over SSH?

I have a number of centralized scripts, which install certain pieces of middleware (for example JBoss-AS, JBoss-EWS, etc). The idea is to use expect to write a script which runs the script (which can ...
1
vote
2answers
250 views

Best way to store root passwords

I have over ten web servers to manage and configure, with each server having its own root user and password. I have to maintain a database of all the root passwords on my development machine, but I ...
1
vote
2answers
93 views

sudo not giving full access on Mac OS X

I am trying to install npm via shell script on mac 10.6.4 and sudo does not seem to be working as the shell fails when trying to access /usr/lib and create documents in that directory. What is wrong? ...
2
votes
2answers
2k views

Does sudo need root account enabled in MacOS X?

If the owner of a Mac hasn't enabled the root account (via NetInfo manager and the usual suspects) then is it possible to successfully execute a sudo'd command to effect root tasks? Why / Why not? I ...
5
votes
7answers
12k views

How to run a program as root without “sudo”?

I have a certain binary program on OS X that can only be run as root. I'm tired of prepending sudo each time I invoke it and typing the password, and would like it to automatically run as root when I ...
3
votes
3answers
20k views

Set password for root on virtualbox ubuntu

I loaded ubuntu into virtualbox. It all works well but it occurred to me that I was not asked (or did not setup) a root password. I want to use root on occasion, but I cannot seem to find out how to ...
4
votes
1answer
1k views

How can I use sed in /etc/apache2/sites-available?

I'm attempting to write a script that uses sed to copy the default file for apache and writes a new file, replacing /var/www ($DOC_ROOT below) with my own directory, $NEW_SITES_DIR. However, sed isn't ...
1
vote
2answers
409 views

Cannot login as super user anymore

I have an issue with login as root with in ubuntu. I've mistakely assigning my user to a group as primary group and it is not anymore in sudoers. Consequently I cannot use "sudo" anymore. I tried to ...
10
votes
4answers
6k views

How do I make sudo ask for the root password?

When I run sudo as a normal unprivileged user, it asks for my password, not the root password. That's often convenient, but it reduces the amount of information someone would have to have in order to ...
12
votes
3answers
11k views

UNIX - mount: only root can do that

I need to allow a non-root user to mount/unmount a device. I am a total noob when it comes to UNIX, so please dumb it down for me. I've been looking all over teh interwebz to find an answer and it ...
2
votes
1answer
1k views

CentOS, sudo Doesn't Accept root Password, but Logging in as root Works

I am new to Linux and I have CentOS running on a dual boot system. I was trying to edit a file requiring root permissions, so I used sudo. I typed the root password and it failed. This happened ...
16
votes
8answers
71k views

User not in the sudoers file. This incident will be reported

I need to install a package. For that I need root access. However the system says that I am not in sudoers file. When trying to edit one, it complains alike! How am I supposed to add myself to the ...
2
votes
4answers
2k views

Any latest linux distro which gives full root access ( NO SUDO )?

Is there Any latest linux distro which gives full root access ( NO SUDO ) ? I want to use it for programming in which I have to use / file system very frequently. What I need is any good linux ...