Root is the superuser of Ubuntu. Questions about the / or /root folder are better suited for the "filesystem" tag.

learn more… | top users | synonyms

1
vote
1answer
46 views

How to prevent execution of “sudo rm -rf --no-preserve-root / ” command?

After going through this question I'm quite scared! It's not that I don't want to use sudo rm command, but I want to inhibit the execution of the sudo rm -rf --no-preserve-root / command. If this ...
0
votes
1answer
22 views

Can't get root passworldless ssh to work

I have master and slave machines and wish to be able to passwordless ssh between root accounts. On slave I did sudo su - root and passwd to set up a root password. On slave I edited /etc/ssh/...
8
votes
1answer
79 views

How to make /sbin/shutdown, /sbin/reboot etc. require sudo again in 16.04?

For whatever reason, we do no longer need to be root (or using sudo) to run /sbin/shutdown, /sbin/reboot etc. This seems to be because those executables are now symlinks to /bin/systemctl which ...
18
votes
8answers
56k views

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

I have run following command accidentally sudo chown [username] -hR / Now sudo su getting error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set How to Solve This?
3
votes
3answers
2k views

Root directory '/' locked after using chmod

I accidentally used sudo chmod 3 / which gives a execute and write permission to the root directory, while deleting the read permission. How can I recover from this, I cannot even use sudo now.
-1
votes
1answer
23 views

Ubuntu Touch - root access without signing in

I got an Ubuntu tablet because I expected more freedom and control over my privacy. Now I learn it is not quite like that. If this fails my expectation, the package ships right back... Question: how ...
13
votes
2answers
21k views

How do I start jobs as a non privileged user in Upstart?

I'm using last upstart version for ubuntu 10.4 LTS. upstart is launched with --debug kernel flag. I'm making a custom job configuration for nzbget daemon. Basically, this job has a pre-start script ...
0
votes
1answer
36 views

How can I make nautilus like this always?

Here is my nautilus opened with sudo nautilus: Here is my nautilus normally opened: I want to make nautilus always like sudo nautilus. How can I do it? Thanks!
106
votes
5answers
191k views

Execute sudo without Password?

Inspired by this question.... I am the sole person using my system with 12.04. Every time I issue a sudo command; the system asks for the user password (which is good in its own way). However I was ...
2
votes
2answers
4k views

Create FTP users with limited access only to home directory Ubuntu 12.04

I'm having Ubuntu 12.04 server and I have installed VSFTPD service for FTP. I'm trying to create a FTP user who has access only to /var/www/ directory and all permissions for sub-directories. ...
1
vote
1answer
46 views

Trying to ssh root, why get permssion denied in 16.04?

I'm trying to set up passwordless ssh between root accounts in 16.04 (needed for Hadoop installs). I set up a password for root by sudo su - root and passwd. When I try e.g. ssh -l root slave3 or ...
-2
votes
3answers
53 views

How to set up passwordless ssh for root account?

i am trying to follow the instructions here to set up passwordless ssh between root accounts (needed to use Ambari). However this involves ssh-copy-id user@machine and since user is root, when I try ...
0
votes
0answers
20 views

How do I recover 14.04 from “no root file system is defined” while upgrading to 16.04?

This is a problem. I tried to upgrade from 14.04.03 LTS to 16.04 LTS without backing up. (Sorry, my backup drive was full and I didn't know how to restore it.) I used a DVD to upgrade it, and ...
6
votes
3answers
33k views

Re-enable graphical root-login on 12.04 LTS

On Ubuntu 11.10, I enabled the graphical login as root by (at least I think so) running sudo passwd After upgrading to 12.04 LTS, the graphical option has gone, while su in the Terminal is still ...
2
votes
1answer
786 views

Chrome standalone for linux (no root) [duplicate]

Since i don't have root user password, is there anyway to install google chrome with it's dependencies ? (64 Bit)
12
votes
7answers
75k views

How do I allow non-root access to /ttyUSB0 on 12.04?

Since I updated from 10.04 to 12.04, I am unable to access the device connected in /ttyUSB0 if I don't have root access. To be more specific, I use a usb-to-serial com port converter to access and ...
0
votes
1answer
44 views

Can I start Terminator as root?

I am using Terminator, because it has cool ability to split itself into more terminals. But can it be run as root, without need to type sudo -i after launch? (adding Run as root into Terminator shell ...
15
votes
7answers
13k views

What are the benefits of sudo over su?

What is the actual benefit that Ubuntu (or Debian derivatives) achieve by disabling root user? Everywhere I read, it says to prevent unintentional damages for inexperienced users. I want to know what ...
2
votes
1answer
5k views

Sudo comes up with an error, cannot run anything as root

For some reason, when I try to run any programs (I am trying to run a rootkit hunter: rkhunter) as root on the command line with sudo like this: sudo rkhunter Then I get this message: You must be ...
2
votes
2answers
10k views

sudo must be owned by uid 0 and have the setuid bit set

I am trying to run the following command: d@d-Aspire-M5 ~ $ echo "My username is: `whoami`" My username is: d d@d-Aspire-M5 ~ $ sudo chown -R `whoami` /usr/local/lib/node_modules sudo: /usr/bin/sudo ...
5
votes
5answers
45k views

What is the password for ``ssh root@localhost``?

I need to ssh to localhost using root account, by ssh root@localhost. When it prompts for passwords, I can not login with all possible passwords. On setting of localhost machine, regular user xxx and ...
0
votes
1answer
48 views

What is the difference between the group root and the group sudo? Why root user by default is not a member of the group sudo?

I am quite confused regarding this matter. As far as I know the user root has all the privelages. Also all the users of the group sudo has all privelages. But the user root by default is not a ...
30
votes
4answers
111k views

How to configure ADB access for Android devices?

I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works. The problem is that my phone requires adb to be ran by root for permissions, but running adb ...
0
votes
0answers
36 views

Command “sudo su” is not working [duplicate]

By mistake my bashrc has changed (using source command to a .com file). Now sudo su command is not working. To use root I have to give bash command. How can I return previous stage? Or use sudo su?
0
votes
2answers
32 views

Extending root partition Ubuntu 16.04 [duplicate]

I've run out of space on my root partition and I want to extend it. I've seen another posts of this topic but my lack of knowledge makes it difficult for me to achieve what i want. Here's a screenshot ...
1
vote
1answer
33 views

MySQL does not accept password not lets me reset password by skip-grants-table, unable to login

I terminal I have typed: apt install mysql-server mysql-client It asked me for password and I gave it. Next I typed: mysql_secure_installation It prompted me for password. I am cent percent ...
0
votes
0answers
18 views

My 16.04 laptop just logged me in as root without a login screen

After boot, my laptop on up-to-date kubuntu instantly went to the desktop loading screen without asking for any passwords. Turns out it had logged me in as root automatically. I have not set a ...
1
vote
2answers
147 views

Rooting BQ Aquaris M10 tablet? [closed]

With Ubuntu, i think the root access is essential, just like ability to remove any "cloud" apps, like automatic update checks or stuff like crash reports etc. Should i buy this tablet if i need: ...
32
votes
3answers
40k views

Disable root account in Ubuntu?

I was asked for root credentials to setup my printer in Ubuntu. This seemed to be caused by a bug. And the suggested workaround is to create a root password. Since it is default that no root password ...
0
votes
1answer
42 views

Sudo: /usr/bin/sudo must be owned by uid 0 and have setuid bit set [duplicate]

Help I'm stuck. My login page was looping I checked online came here and most solutions didn't work for instance I didn't have the .Xauthority file listed when I ran the command ls -lah, so I stumbled ...
0
votes
1answer
41 views

Problem with installation of apache solr

I am trying to install apache solr and I am following this tutorial. The problem is when I am trying to run bin/install_solr_service.sh --strip-components=2 it tells that Supported OPTIONS ...
3
votes
1answer
31 views

Automatically start JetBrains softwares as root (via plank shortcuts) on Ubuntu 16.04

I'm very new to Linux environment, I came from Windows. I've installed Ubuntu 16.04 on my machine (an XPS 15 9550 with a dual boot - Win10), a plank and a theme (macbuntu, don't blame me :p). I'm ...
-4
votes
3answers
146 views

I need to change the root user's password to install programs [duplicate]

Okay, It really looks like I am going to keep running into problems with Kubuntu. When I installed Kubuntu yesterday, the setup did NOT ask me to setup a root password. It only asked me to create my ...
0
votes
0answers
59 views

How to Reset Root password without login? (I know current Root password)

I want to change the root password of my Ubuntu Server without logging in. I know the current root password. I've tried ssh root@SERVER_IP echo "currentpassword|newpass|newpassagain" but it's not ...
-1
votes
0answers
30 views

administrative password changed after losing but now doesn't login

I did the recovery mode then root then after receiving authentication token manipulation error I did the mount remount then chmod 640 /etc/shadow then when I tried the recovery on root passwd '...
5
votes
3answers
4k views

Unable to SU with root: `/bin/bash: permission denied`

root@frankfurt:~# sudo adduser newuser Adding user `newuser' ... Adding new group `newuser' (1001) ... Adding new user `newuser' (1001) with group `newuser' ... Creating home directory `/home/newuser' ...
1
vote
1answer
29 views

Accidentally created another root user. How to delete or change permissions?

I need a non-root user to do certain (safe) things. I didn't pay attention, and used useradd -ou 0 -g 0 new_user_name, which gave root permissions to the user. It also has the same UID of 0. Before ...
2
votes
1answer
109 views

Cannot go into Root

When I enter sudo su or sudo -i in terminal on Ubuntu 12.04, I cannot become superuser. When I enter the password nothing happens. Its like: user@host~: sudo -i enter passwd: ****** user@host~: ...
0
votes
0answers
21 views

Root Drive Partition

I am unable to create a new drive. need help...
0
votes
2answers
24 views

Can I use binaries compiled for Scientific Linux on Ubuntu?

Can I use binaries compiled for Scientific Linux on Ubuntu? I need to use library called ROOT in old version (released in 2010), but can't find binaries for Ubuntu.
0
votes
0answers
11 views

System Tunables with sysctl [duplicate]

for my linux foundation study i must do this; In the below we are going to use two methods, one involving sysctl, the other directly echoing values to /proc/sys/ kernel/pid_max. Note that the echo ...
-2
votes
1answer
31 views

Creating long root passwords

Lets say I have root password somepass. Is there a way to create a script that changes my password to a string consisting of the original password concatenated with itself n times ? I.e., if n=3, the ...
0
votes
0answers
22 views

Failed Root Authentication Problem

When I install Ubuntu 14.04, during the installation it never asks for my root password, and when it installs I cannot sign on as the root. Please help
0
votes
1answer
361 views

How can I execute scripts as root without pointing to its location?

I tend to use sudo arp-scan --localnet --interface wlan0 a lot, but I find it cumbersome to type this each time. To speed things up, I've created a script, called arp-lw-scan, which should do this for ...
1
vote
1answer
38 views

Run computer as root without terminal [duplicate]

I have a lamp project and I can't move my project in the file I'm supposed to move unless I do it from terminal as root, and then it doesn't let me open the project and change it, I have a lots of ...
6
votes
1answer
138 views

Why does `reboot` and `poweroff` work without super user privileges in Ubuntu 16.04?

There already are a lot of questions about why shutdown and reboot require root privileges. There are many good answers available too. Why do we need to be root in terminal for shutdown and restart? ...
1
vote
1answer
61 views

Can't give write permissions to /root?

I am trying, and failing, to give the user jenkins write access to /root. Firstly: Yes, this is not something you would normally recommend doing. But for some reason Jenkins is insisting on writing ...
-2
votes
1answer
41 views

Changing the root user of MySQL [closed]

How do I change my root user to any other local user on mysql db?Since I have installed Ubuntu all the work is done by this superuser root now just don't want root to do all stuff of mysql...
32
votes
9answers
138k views

How do I get permissions to edit system configuration files?

I can't seem to edit and save config files in the root system (eg: /etc/dhcp/dhcpd.config); it just says "permission denied" or the save option is blocked in the text editor. I'm pretty sure I'm a ...
0
votes
0answers
34 views

Lost my 5 years old ubuntu partition and testdisk is no help

I try to extend my small 5g ubuntu partition in my dual boot computer but I lost all my root partition. I can now boot to windows but the root partition of ubuntu is lost and testdisk does not help. ...