The "root" account is the most privileged account on a Unix system.

learn more… | top users | synonyms

24
votes
3answers
93k views

How do you change the root password on Debian?

I want to change the password I assigned to root on my Debian webserver to something longer and more secure. Bit of an obvious newbie question, but how do I do that? I haven’t forgotten/lost the ...
0
votes
0answers
13 views

Centos VMWare backup emergency mode password reset

I have recently backed up my remote virtual machine and downloaded the data into my local. I did the setup on my local with VMware workstation and tried starting the server. I realized I missed ...
2
votes
2answers
13k views

can't ssh into remote host with root, password incorrect

I have a remote host, previously I can ssh into it with root and password ssh root@remote_host or I ssh into it first using a regular user account ssh esolve@remote_host and then su root and ...
0
votes
1answer
121 views

I moved root partition by error

I'm on a VPS with CentOS 6.5 I was trying to install ASSP so by error i did this command mv -f /* /usr/share/assp and then I can't do anything when I try something like: [/]# dir -bash: /bin/ls: ...
2
votes
2answers
348 views

Can't run aplay as root!

Not that I need to aplay as root but it came across me and I wondered why it shouldn't work. # aplay /home/bibek/apert.wav XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid ...
3
votes
1answer
23 views

How do I set up busybox to allow a non-root user to set the date?

I have an embedded system built with busy box. I allow a user named "app" to download a program/script to a directory and it will be run on boot. The program should be allowed to set the date. It ...
0
votes
1answer
18 views

Copy /home without root [duplicate]

I installed Xubuntu on a friend's PC and he understood, that is it greater than Windows 10. He has no practice with shell and dont want to use it! The PC is used by several people. He (the owner) is ...
3
votes
3answers
93 views

How can I test if a file in /root exists without su to root?

My OS is Ubuntu 14.04 LTS. I got a file /root/1.txt, and logged in with 'yu', who doesn't have read permission on this file. When I use the code if [ -e /root/1.txt ] , it returns false. I know I can ...
0
votes
3answers
20 views

Does it matter if I'm root or not when installing apache?

I need to install a LAMP stack on a RHEL 6.7 server. Do I have to be root to install this or not?
0
votes
0answers
39 views

Centos 7 root passwd reset

I was stupid enough to log my root password on one spot and that crashed so I lost my root password to my server. I followed the guild of ...
0
votes
0answers
19 views

How to run a Qt application on a remote host as root?

Deploying a Qt application to a remote linux host is straightforward. However, the program runs with the rights of currently logged in user on the remote machine. For debugging purposes, I often ...
1
vote
2answers
44 views

Why when I try to execute a program as normal user I get denied, and when I execute it with sudo I get “Not Found”

In order to execute mysqlbackup I have to execute it as root. Here's the example when I execute it as normal user: mysqlbackup --compress --user=root --socket=/var/lib/mysql/mysql.sock ...
13
votes
6answers
2k views

Is there a root password on OS X and Ubuntu?

When you setup a new Ubuntu or OS X installation a user is generally created for you. On OS X it is whatever username you pick. On Ubuntu (the server version) usually the ubuntu user is created. The ...
2
votes
1answer
40 views

How can I merge 2 disk images into one with 2 partitions?

I have 2 (relatively small) disk images for qemu (raw format) containing different filesystems (say fat and ext4). I want to put them into an usb stick as two different partitions so that I can plug ...
1
vote
2answers
5k views

How to autologin as root to mint 17.1

I would like to know how to autologin as root on mint 17.1? I've been able to login as root from the login screen (by enabling root access in login window settings and changing the theme to clouds). ...
1
vote
1answer
2k views

Start application as root at boot time on Ubuntu 14.04

I'm working in Ubuntu 14.04 I have an C++ application which I have compiled. I get the executable which name is "program". Well the thing is that this program use opencv and sockets then if I try to ...
3
votes
1answer
30 views

Is it safe to make symbolic links in /root to config files in a a users home directory?

Does symlinking from /root to a configuration file in a users home directory bad practice security-wise? For example I currently have /root/.vimrc symlinked to ~/.vimrc Is it a viable attack to make ...
1
vote
2answers
36 views

Root users home directory (/root) modified

Both Thunar and the ls command tell me that the /root folder has been modified recently. Using the find -mtime -1 command within the /root folder, I discovered that a hplip log had been modified. ...
0
votes
2answers
762 views

Root access denied in LiveUSB of Portues

I am on Live Linux USB of Porteus linux and I copied it to RAM. I want to access root folder for making changes so that settings gets saved. but this is showing up
1
vote
1answer
29 views

Getting password prompt after editing sudoers file in cent OS 7?

Part of my sudoers file lines begingin with mukesh are edited: ## Allow root to run any commands anywhere root ALL=(ALL) ALL mukesh ALL=(ALL) SOFTWARE,DRIVERS mukesh ALL=(root) ...
2
votes
3answers
2k views

Why does sudo su work, but su does not? [duplicate]

I have tried this on Fedora and on Ubuntu. kshitiz@kshitiz:~$su su: Authentication failure kshitiz@kshitiz:~$sudo su root@kshitiz:/home/kshitiz# I am entering the same password in both the cases. ...
6
votes
3answers
5k views

Write to a file without redirection?

I am writing a regular compiled application that needs to create a special file and write a magic cookie into it. I can’t write the file directly from the application, the system security model ...
6
votes
2answers
7k views

How do I disable remote root login via ssh?

How do I disable remote root login via ssh? I want to log into my server (I use keys on my main comp) then su into root instead of access root directly. I am using Debian. I follow guides online ...
0
votes
2answers
35 views

How to have the same configuration for both root and user?

Hello I just installed Debian and have only one user since it's my personal computer. I would like for all softwares, x, xfce, terminal, vim, shell to always have the same configuration without me ...
2
votes
1answer
85 views

Cannot connect to wifi with wpa_supplicant

I just installed Arch Linux on my laptop. So far I have only been able to connect to wired networks. When I try to connect to my wifi network with wpa_supplicant -D nl80211,wext -i wlp3s0 -C ...
-2
votes
5answers
119 views

Why does superuser exist in Unix/Linux?

I know that some system tasks are permitted only to privileged users/processes, but still a super user (usually the root in Unix/Linux) or administrator can present so much problems in regards to ...
1
vote
1answer
38 views

Why is “nobody” called the “most privileged user after root”? [duplicate]

When I was first learning Linux I recall reading that because it is so widely used, "nobody" is (jokingly?) known as the "second most privileged user, after root" on Unix machines. A quick google ...
1
vote
0answers
33 views

How to restrict su from root to nis clients

We are using NIS services for users login for Unix accounts. We have test machines where users themselves install OS and they get root access. Users are using su from root account to NIS user accounts ...
0
votes
0answers
28 views

Execute commands without sudo inside jenkins

I've imported a bunch of jenkins jobs and these jobs have a lot of shell script commands.There are no sudo before these commands.Jenkins has its own user.Is there a way so I can execute these commands ...
-1
votes
1answer
70 views

pulseaudio run as root

I have Ubuntu 12.04 installed on my PC, recently I have edited /etc/passwd and changed user1:x:00:00:user1,,,:/home/user1:/bin/bash to give root permission to user1 and the system always need to ...
1
vote
2answers
58 views

How can I start program on boot in Ubuntu 14.04?

Is the root crontab the only way? I'm starting up a MC server and don't want it to need me to manually restart it each time the server reboots for whatever reason. I don't want any login required ...
0
votes
1answer
45 views

How to enter a user account and run commands from a shell script being run as root?

I am presently writing an automated install script for Arch Linux, to simplify the install process for myself (in case my current installation of Arch goes belly up and I can't fix it myself), but the ...
0
votes
1answer
40 views

Is there a way to start always as a root?

I'm using Debian Wheezy, and I need to be always as a root. So I do the following every-time I restart the OS: $ sudo -i then startx. Is there a way to restart directly as a root every-time?
1
vote
2answers
55 views

How to protect/secure the “sudo” log_input/log_output logs? [duplicate]

My Chief Security Officer (CSO) want to log the activity of the privileged account (root). I know I can configure sudo to log user input (key strokes) and console/terminal output (stdout/stderr), as ...
16
votes
4answers
9k views

How far can you go with rm -rf / as root

If you are root, and you issue rm -rf / Then how far can the command go? Can you recover data from this kind of an action? Even after the binaries are gone, would the running processes still be ...
0
votes
0answers
65 views

Unable to su to any user as root on Red Hat 6.7 server

System: Red Hat Enterprise Linux Server release 6.7 (Santiago) I am trying to su to kms user(OS user) as root but i keep getting error saying You are required to change your LDAP password ...
0
votes
0answers
19 views

Kate/Terminal/Chromium/etc. refuse to open

I accidentally ran a GUI (Kate) with sudo--dumb I know--and when closed the application I got this error message: Error: "/var/tmp/kdecache-username" is owned by uid 1000 instead of uid 0 I've done ...
4
votes
3answers
130 views

What exactly differentiates the root user from every other user?

What are the fundamental differences between some arbitrary account and root? Is it just the UID being something other than zero? So, what exactly does the su binary do and how does it elevate a user ...
0
votes
1answer
46 views

Floppy drive can only be mounted as root

Yes I know - a floppy drive. but.... I want to extract a whole bunch of samples of old floppy discs (about 300 discs) from my Ensoniq EPS sampler (that has died). I am using a C program called ...
4
votes
2answers
5k views

Can edit file as root, but not using sudo

I just faced a really strange situation. I was trying to edit file /usr/lib/thunderbird/thunderbird.sh, which has the following permissions: $ ll /usr/lib/thunderbird/thunderbird.sh -rwxr-xr-x 1 ...
2
votes
1answer
840 views

Granting SAMBA rights and privileges requires root password

Given a default Ubuntu installation, I get the following myusername@EARTH:~$ sudo bash root@EARTH:~# net rpc rights grant myusername SePrintOperatorPrivilege Enter root's password: Failed to grant ...
0
votes
0answers
15 views

Telegram on Kubuntu 15.10 asks for phone number every time

I've downloaded Telegram from their website and ran the executable, it keeps asking me for my phone number and to insert the pin code I receive , every single time I log in. It's becoming ...
2
votes
2answers
92 views

Why does root need to enter a password when executing specific commands?

On a certain RHEL5 machine, when root is executing commands such as passwd someuser or any other privileged command, the root password is requested for verification and the command can't be executed ...
8
votes
2answers
736 views

Nautilus special URIs

Where are these special URIs used in Nautilus defined in Ubuntu? recent:/// trash:/// x-nautilus-desktop:/// computer:/// burn:/// These can instantly open special locations in Nautilus by typing ...
2
votes
2answers
88 views

sudo tar changes extracted files ownership to unknown user

I am running this command: $ sudo tar xvzf nexus-latest-bundle.tar.gz The extracted files belong to an unknown (1001) user: drwxr-xr-x 8 1001 1001 4096 Dec 16 18:37 nexus-2.12.0-01 ...
0
votes
2answers
2k views

When does Linux send a root mail and how to force it for testing purposes?

Let's say I want to test root mail functionality after I set up nullmailer, how do I force my Debian Linux system to send a root mail? And furthermore on which events does Linux send root mails at ...
1
vote
1answer
87 views

debian 8.2 can no longer su to root

If I try to "su root" with an incorrect password, I get the expected 'authentication failure'. If I try to with the correct password, I get 'setgid: Operation not permitted" I have tried the usual ...
2
votes
2answers
84 views

How to switch to root and use same dotfiles as my normal user?

I run zsh on Mac OSX, and sometimes want to switch in the terminal to the root user. I'd like to keep all my dotfiles, and environment path configuration and scripts from my regular user, and just do ...
0
votes
4answers
88 views

Disable root login in CentOS 7.2.1511

Allegedly, if you are logged in as non-root and write sudo passwd -d root, root login will be disabled, meaning that you have to log in as another user and use su to switch to root (or just stick with ...
2
votes
1answer
856 views

How to respawn vpnc when it stops?

As root, I've setup a crontab rule that launches vpnc everyday early in the morning (before I arrive at my workplace). But it often occurs that the vpn stopped mid day. As a result, I have to sudo ...