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

learn more… | top users | synonyms

0
votes
2answers
79 views

Python imports working for root, but not specific user

I'm trying to run a python script through a user account, call it myuser. I want to be able to execute the dropbox.py script without logging into or su'ing into root. The program works perfectly when ...
1
vote
0answers
82 views

Run script as root after autologin in X

I've got a public PC on which there are: 1 big screen 1 touchscreen, the user can touch it and navigate through a website the website is in fullscreen, right click is disabled and the keyboard that ...
0
votes
4answers
70 views

Root home is not /root on my debian?

When I use su to get root, and then I cd ~ I am not on the /root, when I ls it shows me a Desktop file and some hidden files like .bashrc, but nothing else. root@debian:~# ls -a . .. .adobe ...
3
votes
0answers
69 views

tune2fs - how much space to reserve on large ext4 filesystem

I am aware that there are several questions concerning how much space to reserve on a filesystem using tune2fs -m, but some of the advice is contradictory, some seems to be relevant only to the ...
3
votes
1answer
82 views

Does the chown command require root? [duplicate]

I'm user1 and I created the user.file file, so I'm the owner of this file. I would like to change the owner of this file with the chown command as follows: $ chown user2 test.file chown: changing ...
2
votes
1answer
2k views

How to expand /boot partition on Ubuntu 15.10?

Recently I made a fresh install of Ubuntu 15.10 on my laptop after erasing everything. I have got notification from update manager to update my system. But I am getting the below error which says the ...
0
votes
0answers
42 views

Linux - What resources require raised privileges C/C++ programming?

I am in the process of developing a daemon and user application which will talk to the daemon over a UNIX domain socket to send commands, get status information, etc. The user application will be run ...
0
votes
2answers
180 views

Execute browser as root

I need to run my browser as root, in order to gain Citrix receiver, which is executed within the browser, permissions to access and edit the hosts file. Otherwise I get this error: You do not ...
0
votes
1answer
345 views

How to open Leafpad as root in gnome-terminal in kali linux? [duplicate]

I am following this in which there is some commands: deb [arch=i386,amd64,armel,armhf] http://http.kali.org/kali kali-dev main contrib non-free deb [arch=i386,amd64,armel,armhf] ...
2
votes
1answer
128 views

`su` and `sudo bash` give a root prompt that won't execute any command

This is happening on a CentOS 6.7 server, that I can ssh to as root or as my ordinary user. Opening an ssh session as an ordinary user and switching to root within the session gets the expected ...
1
vote
1answer
408 views

why ssh myLogin@localhost works but ssh root@localhost doesn't? [duplicate]

I know ssh root@localhost is a bad idea...I get it. But why doesn't ssh root@localhost work? I even changed my root password just in case: > sudo -s > passwd But still when I do ssh ...
3
votes
0answers
32 views

Power of a root process to inspect memory

I know on a Linux machine, if a process is able to get root privilege, it can access parts of the file system it normally wouldn't have access to. I want to ask whether a rooted Linux process can ...
0
votes
2answers
582 views

How to install Python on CentOS without root privileges?

For some reasons, I need to install Python on CentOS without root privileges. Since without root, one cannot use yum to install packages, so I tried ./configure --prefix=$HOME/tools/python make make ...
0
votes
1answer
95 views

acroread only runs as root

Note I already asked the exact same question here, with no success. I hope it's not a problem. I am working on a computer connected to a LDAP server. The computer is running under Linux Mint 17. I ...
1
vote
3answers
197 views

Why root's password change doesn't require old password

Why can root's password can be changed without entering the old password? Is there any benefit to this or is it just an implementation fault? If we issue passwd from a normal user account it first ...
19
votes
7answers
3k views

Which access rights can't the superuser violate?

Fr. Br. George told in one of his lectures (it's in Russian) that there are some access rights that superuser can not violate. That is there are some access right which can forbid superuser doing ...
0
votes
2answers
107 views

Running program as root vs user vs sudo xxxx

I got some questions: What is difference between running program as root, and running program with sudo programxxx? Is sudo more safe? Do I have to run process as user? Or maybe as sudo ...
0
votes
1answer
22 views

Lock down certain files

I want to be able to lock down files to be only executed and not editable unless root access is granted to the user. I have a file called 'server.properties' and I would like to make it so that only ...
0
votes
0answers
70 views

Logged in as root server but terminal not showing #

when I log into Centos 6.5 server with root details, It is not showing # in my terminal, when I do sudo it says "sudo: /etc/sudoers.d is world writable" So i checked on google and used answers ...
1
vote
1answer
74 views

Security - Runing Daemon, program as root or user vs sudo su

I have some questions about Linux security: Running a process as root is a big mistake (root has too much power + a program get too much permissions in the system). I always ran processes as a user ...
1
vote
0answers
20 views

How do I escalate a signal?

For the past week, I been having a bug that my python code hasn't been doing a cleanup process properly. It was suppose to once it captures a signal caused by closing the terminal, it does some ...
0
votes
1answer
271 views

How to create a user without group? [closed]

Is this enough to create a user without group? Command: adduser -N auser
0
votes
1answer
181 views

Valid root/user passwords not working on EC2

There is an authentication failure when I'm trying to enter password for any of my accounts after an update using yum. My authentication got broken, while everything else works. The updates were ...
1
vote
2answers
107 views

Iceweasel 26, no root privileges and ad blocking

In our workstations we don't have root privileges. Our home directories are synced (they don't depend on the physical computer). We have an old Iceweasel 26 installed. I'd like to block the ads. ...
1
vote
0answers
39 views

Can you create a read only encrypted partition that root cannot write to (or remount)?

I have an encrypted partition that I would like to be mounted as read only. The catch is that I do not want a root user to be able to remount the partition as read-write unless they have the ...
2
votes
4answers
178 views

Authentication failure on Amazon Linux

There is an authentication failure when I'm trying to enter password for any of my accounts. I am logged in using ssh to my AWS EC2 instance. After a while I checked the privileges to files that ...
1
vote
1answer
120 views

How can I write a bash script that sends a graphical notification to all users' X displays?

This is a request for improvement and update (NOT a duplicate!) on these 2 questions & answers: Can I launch a graphical program on another user's desktop as root? Show a notification across ...
1
vote
0answers
68 views

Allowing SFTP user to specific root directory only

I want to allow a SFTP limited user to access and change scripts in specific root directory called /root/scripts with SSH access disabled. I am having a hard time finding any solutions. The main ...
3
votes
1answer
61 views

How many check points in RHEL/CentOS to make sure no one have sudo/root access

I want to make sure no one has sudo access or root access on some production servers. Some points I have also verified like: grep 'x:0:' /etc/passwd grep root /etc/group cat /etc/sudoers key in ...
2
votes
0answers
115 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 ...
3
votes
1answer
217 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
53 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
51 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
258 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
60 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
345 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
197 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
53 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
27 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 ...
5
votes
0answers
186 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
213 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
333 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
131 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 ...
1
vote
0answers
51 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
104 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 ...
0
votes
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
270 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?