Questions tagged [root]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
40 views

mounting a data partition

I have installed Debian 9 in a laptop and created a partition for data. the partition is mounted as /dev/sda7 and I can see it in the file directory as /data/ But the owner is root and I cannot save ...
2
votes
1answer
58 views

ID results different depending on who asks

I have userX who has realtime privileges thorugh the realtime group. I wanted to give that user admin privileges so I switched to root ~>su root and ran #>usermod -a -G root userX After a ...
1
vote
2answers
2k views

CUPS asking for root password to resume printer on KDE

How can I configure CUPS not to ask for root password to resume or add a printer? Or add users so they're "administrators"? When using KDE Plasma, it asks for root password: "please enter a username ...
0
votes
1answer
104 views

Prevent deleting files in particular directory

Recently, I deleted some files accidentally. Fortunately, I was able to recover them. That is why I would like to prevent deleting files in a particular directory but still allow to create new files ...
4
votes
1answer
837 views

ArchLinux | Login password does not work after creating new user account

I am trying Arch Linux for learning more stuff faster and not having GUI that bothers me, so that I can focus on learning stuff from Linux itself and the terminal. Since I was working with the default ...
0
votes
1answer
629 views

Installing a .rpm package on a Unix VM - root unable to see the file

I am working on an AngularJS app, and want to get Protractor up and running with it, to use for testing the front end user interaction automatically. The way my development environment is set up, is ...
1
vote
1answer
376 views

How to restrict some commands for admin in Linux(CentOS)

how to restrict some commands for admin in Linux(CentOS) I tried to use visudo in root , and write ABC ALL=ALL,!/bin/rm,!/bin/sudo to restrict the "ABC" user not to remove some important files. ...
1
vote
1answer
3k views

run command on user display as root isn't working as expected

I'm trying to execute a xdotool operation (move mouse) on the user's display from a root shell but I get: # DISPLAY=:0 mousemove_relative 1 1 No protocol specified Error:Can't open display: (null) ...
4
votes
0answers
923 views

Alternative to adding 'user_allow_other' to /etc/fuse.conf for security?

It looks like for mounting my Android phone I need to add user_allow_other to /etc/fuse.conf. I researched what this does: According to the manpage: user_allow_other Allow non-root users to ...
34
votes
13answers
14k views

Can I create a *super* super-user so that I can actually have a user that can deny permission to root?

I was thinking that it might be advantageous to have a user with permissions higher than the root user. You see, I would like to keep all of the activities and almost all existing root user ...
16
votes
4answers
5k views

How to stop a script from running if it's not root (and echo “Not running as root! Exiting…”)

Here's my source: #!/bin/bash echo "Running script to free general cached memory!" echo ""; echo "Script must be run as root!"; echo ""; echo "Clearing swap!"; swapoff -a && swapon -a; echo "...
1
vote
1answer
12k views

size of /root and /home partition [closed]

I'm using linux for the first time. I will not use it as my primary os till i get the hang of it. So i have made my /root: 14GB, swap: 6GB, /home: 9.5 GB. Is my set up enough for experimental usage?
2
votes
1answer
86 views

files created on internal hard drive are always owned by root

When I ssh into my computer, files I create on the main hard drive are owned by me: $ touch test $ ls -l test -rw-r--r-- 1 smithty domain users 0 Aug 16 17:26 test But when I move into a ...
0
votes
2answers
126 views

Is there a reliable way to make several user accounts behave as root, except sudo?

I and a friend are administrating a fair number of virtual machines, each one dedicated to some task in the overall system. When we need to administrate them, we typically log in as root, since the ...
2
votes
2answers
299 views

Are there any gotchas with granting a user root privileges by making them UID=0 GID=0?

I and a friend are administrating a number of virtual machines, each one dedicated to some task in the overall system. When we need to administrate them, we typically log in as root, since the only ...
1
vote
0answers
45 views

Save IP in remote host every time connection is up (as non-root-user)

I have a dynamic local Lan IP at work (temporarily), but in order to connect from home, I ssh to the host A (static IP) and from there to my machine. However, since the IP changes, I would like to ...
5
votes
2answers
6k views

Can you list iptables as a non-root user and why?

Is it at all possible to execute iptables --list …. command without being root? Running it as non-root prints this: $ iptables --list iptables v1.4.21: can't initialize iptables table `filter': ...
4
votes
3answers
1k views

Control-C triggers logout from root in bash

I'm facing a really frustrating problem on this specific server, every time I press ctrl+c, I logout from the root session Running CentOS Linux release 7.3.1611 & Bash (4.2.46-21.el7_3.x86_64) [...
0
votes
1answer
608 views

User and Group permissions for mnt folder and files access in CentOS 7

I had installed CentOS as guest operating system in VirtualBox. Now I have been mostly experienced with Ubuntu and CentOS is though similar has some differences. Now I was trying to mount a windows ...
2
votes
1answer
618 views

What should be in the /etc/shadow file if I want my root account to be disabled?

On one of my machines it's root::somenumber[...]::: with somenumber[...] being the same as for my actual account (after what appears to be the encrypted passphrase) and the "logcheck" account (after :*...
0
votes
0answers
217 views

Sharing zsh and vim configuration with root user

I have modified my .zshrc and .vimrc to my likings. Both files source other files containing more configuration and plugins (vundle, antibody). Now I would like to use these configurations when I ...
0
votes
1answer
147 views

Apper errors and looking strange when opening it via sudo

So I locked my root account for security purposes. It seems that for some reason when apper asks for the root password when installing, deinstalling or updating packages it doesn't make use of the ...
3
votes
1answer
7k views

Should I disable the root account on my Debian PC for security? [closed]

From a security standpoint should I disable the root account for my personal computer running Debian 9.1? And if so: what would be the best way to do this?
1
vote
4answers
710 views

From a security standpoint should I add my user to the sudoers file or not? [closed]

I'm wondering what's best practice from a security standpoint: should I add my user to the /etc/sudoers file on my single-user computer or rather just leave %sudo in there? Would this cause any ...
4
votes
1answer
32k views

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' when running sudo commands

When running sudo commands such as sudo dolphin I'm getting this strange error: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' What does it mean and how can I fix it? ...
0
votes
1answer
324 views

Debian Stretch: Can't invoke root from standard user account (possible wrong mount options)

I've installed Stretch(4.9.0-3) in a standard PC 2 weeks ago and all works perfectly fine. But I recently downloaded a new DVD(3) same version to install this time in a usb-stick (3.0) without /swap. ...
5
votes
6answers
44k views

Debian 9: can't use sudo

I've recently installed Debian 9 and encountered the following error. During installation I've set up 'root' password and I've set up 'user' with his own password. Later when I log into 'user' ...
1
vote
0answers
2k views

Adding “open as root” to the right-click context menu of nemo

Since many files and applications seem to need root for proper operation or for allowing edits and having to use the console is too inconvenient, I'd like to have right-click context menu options for "...
1
vote
2answers
346 views

Why am I not getting a password prompt when running a command as sudo, even though my user's group isn't even in the sudoers file?

I'm in /etc which has the following the permissions: drwxr-xr-x 23 root wheel 2560 Jul 1 20:47 etc $ whoami pierre $ groups pierre I have to run sudo if I want to touch foo in /etc. What I ...
0
votes
0answers
262 views

Stop gnome from asking root password?

I'm on the wheel group. I've uncommented: %wheel ALL=(ALL) NOPASSWD: ALL Yet every single time i log into gnome and try to do anything that requires root privilegies i'm asked for the password. ...
0
votes
1answer
612 views

How to open gedit , nautilus , gnome commander using sudo command?

Whenever I open gedit,nautilus and other files in terminal using sudo command, I get the error --> Unable to init server: Could not connect: Connection refused (gedit:22993): Gtk-WARNING **: cannot ...
2
votes
1answer
2k views

kill -9 cannot kill process with parent PID = 1 [duplicate]

I have a process with parent PID = 1. The command kill -9 382 doesn't work. I am root. What can I do? root 382 1 0 07:29 ? 00:00:00 dsmrecall /ptstv/HVideo/2014/2014761/...
0
votes
1answer
329 views

Disable Root Password Login… but can I SUDO with a GUI SFTP program? [duplicate]

I fully understand why I should disable Root login on a production server. That makes sense. I can log in as username, then sudo back to root functions just fine from the terminal. What I'm ...
-1
votes
1answer
1k views

How to shrink root partition and extend another

Here is GParted. The 4 partitions on the left are for windows 10, and the 3 on right are linux mint. The large green one is C: for windows, and I believe the large blue one is root for linux. I do not ...
0
votes
3answers
1k views

Command not found error - bash

$ which sudo emacs /usr/bin/sudo /home/user1/local_build/bin/emacs $ sudo emacs /etc/apache2/sites-available/000-default.conf sudo: emacs: command not found $ emacs /etc/apache2/sites-available/...
1
vote
1answer
2k views

Operate as root in freeBSD

I'm logged in as a user "foo" which is part of group "wheel" after adding via pw group mod wheel -m foo. Where is the difference between: $login login: root Password: and su root
1
vote
2answers
3k views

Why can I open the Root Terminal only once? [Debian 9]

I freshly installed Debian 9.0 with Cinnamon and for some reason I can only open the root terminal once (after I start up the PC). When I try to open it up a second time it doesn't show: when I press ...
0
votes
2answers
4k views

How to edit sources.list as root under Debian 9?

So I just installed Debian 9.0.0 on my PC and now I can't download packages with the Synaptic packet manager as the sources.list file under /etc/apt/ has only the DVD set. All other lines are ...
4
votes
1answer
1k views

Create, as a regular user, a tar with files owned by root

I want to build a tar file as regular (non-root) user with some prepared binaries and configuration files like this; etc/binaries.conf usr/bin/binary1 usr/bin/binary2 that are mean to be extracted ...
9
votes
1answer
2k views

Permission denied for only a single file in a directory as root user on an ext3 filesystem under RAIDiator OS

I have a ReadyNAS box named "storage" that I believe is based on Debian. I can ssh into it as root. I'm trying to reconfigure the webserver, but I'm running into a file permissions problem that I ...
0
votes
0answers
138 views

Bash script fails when run on sudo

The script below is to download, check integrity, extract, remove archive files and install GnuPG 2.1.x. I reliased that the script fails to proceed if it's run as sudo, sudo -i etc. It generates ...
2
votes
2answers
1k views

Resetting root password in CentOS 7 [duplicate]

Having a bit of an problem resetting my root password on a dedicated server with 1&1, running CentOS7. Able to access GRUB through terminal and can bring up the below, however this looks ...
1
vote
0answers
139 views

Prefer sudo over su by using a separate user with full sudo “privileges”?

Can I combine the security of su (which is in my view, and broadly speaking: not everybody can be root) and the convenience of sudo (password timeout) if I: create a user "admin" (for example) give ...
1
vote
1answer
3k views

How to customize the prompt for root?

If one wants to have a customized prompt, one only has to edit the .bashrc file in one's home directory and add PS1="yourPrompt" at the very end. What if one sudo su into the root and want to have a ...
0
votes
2answers
85 views

1 User. 2 Acounts, 2 Passwords

As someone who hates passwords with a passion, why do I have to create 1 password that never gets used and gives no more capabilities than my user password? I find I end up using sudo often. (Mostly ...
3
votes
0answers
590 views

root password not working when entering in Single-User Mode

I want to mount the /var directory in a separate device, but I have to move some files from the current /var to a temporary storage, mount /var on the device that I want and then moving the data from ...
1
vote
0answers
673 views

Cannot change linux password

I have Debian GNU/Linux 9.0 installed on my PC and it is login without password (normal and root users), I tried to changed password using passwd command but it is not possible I received only the ...
1
vote
0answers
77 views

When to make ROOT the owner of Disks, Directories, Files

I am just getting into Linux and am having problems with the subject of OWNERSHIP.... I seem to understand PERMISSIONS, GROUPS and USERS, but when it comes to setting OWNER I am confused as to when ...
3
votes
1answer
3k views

How to read the /proc/<pid>/fd directory of a process, which has a linux capability?

As a non-root user I am running a process. The process binary has been given a cap_sys_resource capability. Even though the process is owned by the same user, that user cannot read its /proc//fd ...
1
vote
1answer
2k views

resetting root password ovh

I've purchased VPS @ ovh.com, I changed my root password and now I cannot remember it, I've followed the steps on their forums but it doesn't seem to take any effect, it only changes the the password ...