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

learn more… | top users | synonyms

2
votes
0answers
141 views

Can I add iptables rule from the inside of a C Linux program only with capabilities or do I need necessarily root?

I need to add an iptables rule from the inside of a C Linux program. How should I do? Do I need root privilege or can I just grant some capabilities? I tried granting CAP_NET_RAW+iep and using popen(...
3
votes
1answer
313 views

SELinux and chroot system call

TL; DR: This is a question about the final step, in a portable, developer-oriented rooting process, that works across all Android machines. It is not based on any exploit - it is something that we are ...
5
votes
2answers
54 views

Command Explanation: mkdir -p /root/.ssh

Disclaimer: Total Linux noob. I came across a Bash script with with the following command: $ mkdir -p /root/.ssh I know what mkdir -p does, but, what is "/root/"? I thought root was '/'?
19
votes
5answers
1k views

Commands to learn about an unfamiliar system [closed]

You log in to an unfamiliar UNIX or Linux system (as root). Which commands do you run to orient yourself and figure out what kind of system you are on? How do you figure out what type of hardware is ...
1
vote
1answer
53 views

Deleted Sudo and Can't Access Grub

I deleted sudo, and I can't access grub so that I can restore it. I have a bad feeling that I don't have grub. Is there any possible way to restore it? apt-get doesn't work on my computer either.
2
votes
1answer
298 views

How to test if root user is enabled in Mac?

I need to test if Mac root user is enabled or not. I usually enable/disable it by using dsenableroot.
0
votes
0answers
64 views

root's login shell is invalid, how do I restore it?

I have accidentally changed the root user's shell from /sbin/sh to /sbin/false. I don't have any other login and the only way I can access to system is through SSH. How can I retrieve back root ...
0
votes
1answer
43 views

Why can't I create directories under /root as a member of root? [duplicate]

I've done the following: sudo usermod -a -G root userA sudo su - root cd / chmod 775 root ls -aln -- drwxrwxr-x. 6 0 0 4096 Sep 13 22:04 root I can cd /root from my userA, but I can't make ...
2
votes
2answers
425 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 ...
1
vote
1answer
208 views

Bash root to user. Best in same or separate script?

I'm working on a Linux Bash script that needs to start as root. At the end of the script, it builds a list of packages. This requires running as user. Then it will move the packages, which needs to ...
1
vote
1answer
59 views

Linux Mint: make a “public clickable launcher” from a sh root only?

I made a shell script to install packages, configure them, etc. Usually I run it via Terminal sudo sh gizmo.sh Now I aim to put it in a double-clickable file to run it, for any user (no sudo, so su ...
1
vote
1answer
29 views

how to avoid direct/network root login on the system and using some chroot to admin the system?

here the idea for which I seek a solution: I want to have a system with no way to log as root. I want to manage the system (edit /etc/files, (un)install something, etc.) by physically unplug the ...
6
votes
0answers
251 views

allow regular users to use network namespaces

I have an architecture using network namespaces (netns). I would like to allow regular users to do some operations in these netns. I could write a script netns-exec.sh, inspired by this post, ...
1
vote
1answer
1k 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. ...
0
votes
1answer
277 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. (...
2
votes
3answers
444 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 ...
1
vote
4answers
147 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 I'...
1
vote
0answers
58 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
119 views

Is sed run as a different user?

I have a sed script that changes some content in /etc/shadow. The actual change isn't important, I will put it just as an example: root@device:~ sed -i 's/root:\(.*\):0:0/root:\1:10:0/' /etc/shadow ...
1
vote
1answer
9k 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 ...
0
votes
2answers
347 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
99 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
0answers
109 views

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

This never happened to me before, but I cannot log in as root. After typing in password, it says Last failed login: bin/bash: No such file or directory Connection closed. Besides ...
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
137 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
88 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 ...
-1
votes
2answers
259 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 ...
0
votes
1answer
82 views

Set root password AMI linux

I need to set a password for root on EC2 AMI Linux. I have tried with passwd root but if I log in with ec2-user and run sudo su, I get a root bash without asking for a password.
5
votes
2answers
198 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
71 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 -flash:...
0
votes
3answers
388 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
0answers
308 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
205 views

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

I'm using gnome on Debian Jessie. When I tried to close terminal after logged in as root, it told me like in the picture below. What should I do to prevent this from happening again? Is it a bug?? ...
15
votes
4answers
3k 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 flashplugin-...
0
votes
0answers
62 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
175 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
93 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
71 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
67 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
116 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
524 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
438 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
283 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 ...
1
vote
1answer
183 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 ...
2
votes
1answer
521 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 ...
3
votes
2answers
247 views

Prompt for sudo password rather than give access error

Can I configure Fedora 22 so anything needing root privileges asks for a password, rather than giving an error, and needing me to re-run with sudo? I wouldn't even mind having to type my password ...
2
votes
3answers
2k views

How to create root user account in Debian?

I installed Debian OS today and while installation I skipped the option to create root user and chose to use sudo. Now I would like to create root user account. Is there any way to create the root ...
2
votes
1answer
53 views

Mixup between root and first non-root user account

I just installed Debian Jessie and created a user account ("jerome") during installation. I log into my server through SSH as jerome, then use su to work as root. (sudo is not installed and root ssh ...
0
votes
4answers
257 views

sudo for command with specific options

Is it possible to configure sudo to get root privilege to a user for running a program with some special switches? for example, how can I configure it for user admin to run netstat command as the root ...
0
votes
0answers
74 views

sshfs finding the password for the root user of a remote machine?

I'm currently setting my laptop and raspberry pi to have a sshfs link between the two for quick file transfer. I was able to log into the users of each machine using my password with no issue, so ...