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

learn more… | top users | synonyms

0
votes
0answers
13 views

How to change default root password for Live Kali Linux - USB persistence

After making a USB Live with Persistence stick, I tried to change root default password (using passwd) to no avail. Every time I reboot it resets to the default one. All other changes I've made (e.g. ...
8
votes
2answers
17k views

why can't I install packages with rpm? I get “transaction lock”

I'm having problems with yum and I am trying to re-install it. I've download yum.3.2.0-40-el6.centos.noarch.rpm. When I try: $ rpm -ivh yum.3.2.0-40-el6.centos.noarch.rpm I get: error: can't ...
0
votes
1answer
11 views

Manjaro Linux — Can ONLY log in from root account

First time Linux user. Treat me like a complete idiot. Installed Manjaro on VMWare. I'm required to get into this whole Linux thing for college. First problem: Created user account from root. ...
1
vote
4answers
55 views

What's the difference between sudo su vs just su?

I see a lot of posts out there that say you type in sudo su to get an interactive prompt with root privileges, and I see equally many posts debating the pros and cons over sudo -i vs sudo su. Here ...
2
votes
2answers
55 views

Allow SSH access but restrict root's access to a given set of IPs

I want to allow SSH for all users as normal except that I want to restrict root's access based on a set of IP addresses. So, users peter, paul, lary can login from anywhere, but root may login only ...
2
votes
1answer
588 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
1answer
677 views

Can't Login to using root user in Kali 2.0 Sana after update

I recently updated my Kali to Sana and I am unable to login as root using my old credentials. I am able to login to the Console with the same username and password but I am not able to login using ...
1
vote
0answers
16 views

Root password not working when trying to update

Running SLES12 on a VirtualBox VM I get the notification that there are software updates. Trying to invoke the update, a popup appears and forces input of administrator password. When I enter the ...
1
vote
1answer
29 views

Is sed run as a different user?

I have a sed script that change some content in /etc/shadow. The actual change isn't important, will put it just as an example: root@device:~ sed -i 's/root:\(.*\):0:0/root:\1:10:0/' /etc/shadow sed: ...
8
votes
4answers
7k views

Vim Error E138: Can't write viminfo file $HOME/.viminfo!

I'm afraid I've run into something rather strange. When I open a file normally, vim README.txt, everything is fine. But upon sudo vim README.txt, the file renders blank, and gives me a E138: Can't ...
0
votes
3answers
89 views

Storing text files inside root directory

I am currently in the /bin directory. I am trying to create a text file of the content of the /bin directory and direct it to be stored in another file within the /root directory. I have entered the ...
0
votes
3answers
1k 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
3answers
245 views

xsession error: cannot log in after changing environment variable

I tried setting a new environment variable (I use linux mint 17). After restarting, I couldn't log back in. It says: Your Session only lasted less thant 10 Seconds. If you have not logged out ...
0
votes
2answers
25 views

How to login as superuser\administrator in Scientific Linux 6 LiveCD?

I have a LiveCD started as a default user. How to login as root? Here it is said that there are boot parameters. How and when to set them?
0
votes
1answer
27 views

Password was required to mount drive but my password didn't work (while still working elsewhere)

Ok guys, me again... I had to reinstall Fedora 22, going well for the most part. Problem is mounting and accessing my Win 7 partition. For some reason when I try to access it from graphic file ...
0
votes
1answer
1k 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 ...
0
votes
0answers
36 views

can't log in to centos 7 VPS /lib64 missing?

Never happened to me before but cannot log in as root, after typing in password it says Last failed login: bin/bash: No such file or directory Connection closed. Besides contacting my ...
0
votes
2answers
1k views

Why user and root passwords cannot be empty on Linux?

I don't know about every Linux distribution but Kubuntu and all other distributions that I tried always require you to set non-empty password during installation. This password is required when you ...
0
votes
0answers
22 views

How can I run a command as root user on Ubuntu? [duplicate]

It seems Ubuntu has disabled the root user account so su doesnt work which is causing me an issue where I have an apache log file that is owned by root $ls -al error.log -rw-r----- 1 root adm 2061050 ...
3
votes
2answers
74 views

Why does man page completion fail after su?

I have a default Debian 8.1 installation. I do su man apt<TAB> but get nothing. I do see the manual when I write man apt-get in both modes: as user mas and as root. However, tab ...
0
votes
1answer
60 views

No folders in “/” on hard drive, mounts “/boot”

I already posted my problem on askubuntu, but I hope to reach some broader audience here as I also realize it's not really Ubuntu specific. So I messed up my Ubuntu Server and it doesn't boot ...
3
votes
2answers
123 views

How to permanently disable root-password prompt for recovery mode, RHEL7

Note: I asked a similar quesiton concerning version 6 of these bundles here. Note that 7 uses systemd and may have a different implementation In the rare cases that a RHEL or CentOS 7 system is ...
6
votes
7answers
308 views

File protection in Unix

Is there a way to protect a file in such a way that even root cannot delete it or rewrite it after creating it? I have a file which is created by root under /var/log/ and I want to restrict all users ...
1
vote
1answer
117 views

Do we need polkit and consolekit on our root-only servers?

We have workstations where the only user is root. We use them only through ssh to distribute workload. We installed Debian 8 (Jessie) on those machines. I've read that consolekit and policy kit are ...
-1
votes
2answers
119 views

Free or cheap shell (i.e., platform) to run a Linux C program with root privileges (raw socket)

I'm working on a Linux C program that needs root privileges (raw socket). I would like to run it on a host located in the US (I am in EU) to compare results. Is there any free (or cheap) shell ...
8
votes
5answers
15k views

How to get back sudo on Ubuntu?

I have done this: sudo chown -R myname /usr/ and now I can't use the sudo command because of this error: sudo: must be setuid root And as I read this means that the owner of this file ...
2
votes
1answer
50 views

How to permanently disable root-password prompt for recovery mode, RHEL6

In the rare cases that a RHEL or CentOS 6 system is prevented from booting by (for instance) an improper shutdown, or a forced fsck-check failure on boot, the console will prompt the user for a root ...
0
votes
1answer
25 views

Set root password AMI linux

I need set a password for root on EC2 AMI linux. I have tried with passwd root but if I enter with ec2-user and run sudo su, I get a root bash without asking for a password.
5
votes
2answers
71 views

`sudo cp -a` changes ownership to root (instead of preserving the original user)

I was trying to backup some directories and some of the copies made by sudo cp -av resulted in being owned by root while others preserved their attributes. Is this a known issue or am I missing ...
1
vote
1answer
17 views

Unable to execute program without root privileges regardless of group or permissions

avrdude is a simple tool that allows downloading of a program to a target microcontroller. For completeness, the command I am trying to issue is: avrdude -p atmega328p -c usbtiny -P usb -v -U ...
0
votes
0answers
41 views

Application icons missing from Cinnamon panel when running as root

I've written a little application and added its icons to /usr/share/icons/ path. I use Cinnamon desktop. When I run the application the desired icon appears correctly in the panel. But if I run it ...
1
vote
1answer
27 views

Why gnome-terminal tells me “There is still a process running” while logged as root?

I'm using gnome on Debian Jessie. When I tried to close terminal after logged as root, it told me like in the picture below. What should I do to prevent this from happening again??? Is it a bug?? ...
0
votes
1answer
185 views

rkhunter warning about ssh root access when that access is not allowed on the system

I just ran rkhunter --check and all was good except this: Checking if SSH root access is allowed [ Warning] What does this warning mean? SSH root access is not allowed on this ...
15
votes
4answers
2k views

What does “are you root?” mean?

This is what I keep getting: ascendermedia@magic2tower:~$ sudo apt-get install flashplugin-installer bash: sudo: command not found ascendermedia@magic2tower:~$ sudo apt-get install ...
0
votes
0answers
35 views

normal user runnig a bash script containing root command without password

I have a bash script that contains few commands that can only be run by root, e.g. wpa_supplicant. I would like to allow the normal user to run the script without sudo. I found these posts but they ...
0
votes
0answers
52 views

Disabled root Access, how to use FTP

I removed the ability to login using 'root' to stop brute force attacks on my server, instead logging in as a regular user then 'su root' to the root if required. I need to use FileZilla to move, ...
2
votes
2answers
48 views

What can I do to start a terminal in a X server at boot without giving away root priveleges?

The problem: I run Linux on an arcade machine with a monitor that accepts a 15kHz signal. I can't see anything until the X server starts and a modeline gets the GPU to output the correct signal. My ...
1
vote
1answer
44 views

How to make Apache piped logging scripts not run as root?

The organization I work for is very security-minded. There is a separation between the group of System Administrators who are responsible for the operating systems (who, obviously, have root) and ...
1
vote
2answers
203 views

Pamtester automate password testing

We have a system image which uses a default password for root. This should be changed, though I have a feeling not all users do this. I know I can test login with pamtester: # pamtester system-auth ...
1
vote
2answers
42 views

Prevent certain lines of a script to run as root

Suppose I am writing a shell script that requires root privileges to run, for example- #!/bin/sh ip -s -s neigh flush all ufw enable How can I prevent certain lines of code to be run as root, i.e. ...
1
vote
0answers
32 views

compile ffmpeg centos

I used this Guide http://trac.ffmpeg.org/wiki/CompilationGuide/Centos To install ffmpeg in my VPS with CentOS 6 64. But it was installed in /root/bin/ and I need to install it in usr/bin/ to run ...
4
votes
2answers
379 views

How do I run a command without root properties

Say I am logged in root, and some commands don't let me to run them in root. I tried to login different accounts, but I'm not able to do such a thing. How can I execute such command (logged in root) ...
0
votes
3answers
195 views

How to give root power to another user

How to Give all the powers Of Root account to another user account? thanks in advance with full command ad detail.
1
vote
1answer
71 views

Linux Root group change chmod for root owned to 770

I'd like to have normal user account assigned to root group (which I've done already) and change mod of all files that are owned by root user to 770, If I understood it well in result of that every ...
4
votes
1answer
3k 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 ...
43
votes
4answers
8k views

Why is root login via SSH so bad that everyone advises to disable it?

Everybody on the Internet advises to disable root login via SSH as it is a bad practice and a security hole in the system, but nobody explains why it is so. What is so dangerous in enabling root ...
1
vote
1answer
41 views

Why root is not constrained by pam

I have the following settings in file /etc/pam.d/common-password. password requisite pam_cracklib.so retry=3 lcredit=-1 ucredit=-1 dcredit=-1 password [success=1 ...
0
votes
0answers
27 views

Unable to execute root commands using client-connect option openvpn

I'm using the openvpn option client-connect to run a script when a client connects. The scrit works fine when I use simple commands but when I add commands that need root privileges it doesn't work ...
1
vote
1answer
105 views

Why sudo user can use sched_setscheduler SCHED_RR while root can not?

I am running Arch Linux on a Raspberry Pi 2. I have a user-space program that uses Gordon's wiringPi library and, in particular, the piHiPri() function that attempts to set the highest priority for ...
5
votes
2answers
7k views

I'm not getting privileges, edited /etc/sudoers [duplicate]

I want to run any program without asking root password. Because I'm the only person who use the system. So I googled and edited /etc/sudoers. What I did: # chmod 640 /etc/sudoers # vim /etc/sudoers ...