Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [root]

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

0
votes
1answer
129 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
6k 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?
0
votes
4answers
638 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
30k 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
315 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
42k 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
333 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
249 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
589 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/...
1
vote
1answer
319 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
992 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 ...
10
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
130 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
131 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
84 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
547 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
633 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
76 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 ...
2
votes
2answers
972 views

How to create several root-like and non_root-like linux users [duplicate]

I have a red-hat system with its root and non-root users. I have to create n new root-like users and m new non-root users. Basically I have to clone the 2 kind of users already present on the server. ...
0
votes
1answer
232 views

Syncing root files with dropbox

My Dropbox is stuck indexing a file from /etc/NetworkManager/system-connections/. This file is owned by the root user with 600 permission. How can I achieve syncing it with dropbox while maintaining ...
1
vote
1answer
116 views

Script to temporarily drop admin privileges

I am creating a self-control tool for administrators. The script when run by an administrator, would voluntarily drop admin privileges. The administrator can regain admin privileges by running the ...
1
vote
0answers
25 views

system service to user service information flow

I'm trying to abstract away some /dev/input files so that user-level systems can know when the touchscreen is being used vs. when the touchpad is being used (without having access to raw mouse data). ...
1
vote
2answers
34 views

How to get a prompt when switching to normal user account when you are already logged in as root

I have a requirement (not sure how valid it is). I want to test the password of a normal user (which i just retested). I am logged in as root, and when I switch user from root, it doesn't prompt for a ...
1
vote
1answer
90 views

Local mail delivery affected by method of root login

I just sent a local mail using the following syntax: echo "Testing" | mail -s "This is just a test" root@localhost Then I log into root using: sudo -i And check my mail. The message is there. If I ...
6
votes
4answers
1k views

Examples of why a world readable /root directory is bad?

To add weight to a discussion I'm having, I'm trying to find concrete examples of why having the /root directory world readable is bad from a security point of view. I have found plenty of instances ...
5
votes
3answers
2k views

“su” when the password is unknown but you're in “wheel” with “no password”

I'm on FreeBsd 11. I have a user "user123" belonging to the group wheel and wheel has %wheel ALL=(ALL) NOPASSWD: ALL in /usr/local/etc/sudoers. I don't know the password of root. However, I'm able to ...
2
votes
2answers
20k views

Permission denied when I tried to create a folder in root [closed]

Hi I tried to create a folder for ssh key in root with this command: mkdir /root/.ssh && chown -R root:root /root && chmod -R 770 /root and I have permission denied: mkdir: cannot ...
0
votes
1answer
3k views

Root user unable to see files/directories [closed]

Preface: This is a digital ocean droplet setup using serverpilot. There are two users, root and serverpilot. When I SSH in as serverpilot I can see the files listed inside of apps/website/public/, ...
2
votes
1answer
6k views

Does “sudo su” makes me the root user?

I have typed sudo su in the Terminal, and then I typed whoami, and the Terminal said that I am the root user. So does that mean that sudo su makes me the root user or am I missing something?
0
votes
1answer
893 views

Unable to change the settings in meld when I launch it with sudo

When I launch meld with sudo, su, gksu or gksudo I have the following output: (meld:1666): GLib-GIO-CRITICAL **: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed (meld:...
2
votes
4answers
604 views

Why is resetting the root password allowed?

In Linux there is a way to reset the root password; why is this allowed? Anyone having access to the physical machine can change the root password, without knowing it. Is there is a way to protect ...
0
votes
1answer
338 views

Connecting a local linux computer over public ip using ssh command

I want to turn my raspberry pi 3 model B into a public server (only for testing purposes not production purposes). I have a second windows PC in which cygwin is available for linux commands such as: ...
0
votes
1answer
583 views

Can't extend root partition with unallocated space [duplicate]

I'm trying to extend my root partition with the unallocated space but it seems like the unallocated space didn't exist. When I reinstalled the system I had two different Free Spaces, one with 32GB and ...
2
votes
1answer
789 views

Can user1's process kill user2's process?

Linux kernel supports the traditional concept of a Unix user. Every user-space process has a user owner. Every user-name has corresponding userid in kernel. Kernel does not know user-name. Groups ...
9
votes
3answers
9k views

Why is the root password on Linux Mint my user password?

I did a fresh install of Linux Mint 18.1 and created a single user named "jack" with PASSWORD1 as the password. Later, I changed the password (using the "Users and Groups" graphical dialog) to ...
3
votes
1answer
2k views

SSH passwordless root login gets “Permission denied (publickey).”

I have two Raspberry Pi (with Raspbian 7 and 8) connected to the same LAN. One has a data connection with an APC UPS. There's a couple of similar scripts in both machines to be ran under power failure ...
0
votes
1answer
145 views

Trying to reset root password on mysql

Okay, so right after installing mysql, the root password given to me in the installation doesn't work. I tried uninstalling and installing again. Same thing. So I said, "let's try and reset the ...
0
votes
1answer
4k views

Why do I get Fsync failed error?

I'm trying to follow MongoDB documentation instructions to configure LTH properly for a machine running MongoDB. One of the instructions consists of creating a script which runs at boot. ...
1
vote
1answer
269 views

How to run a script during boot as root after user desktop is loaded

I have a script that starts dropbox as user dropbox. I want it to automatically start after desktop environment is loaded. Desktop environment is running as another user not "dropbox". When I run it ...