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.

4
votes
0answers
1k views

Gain root access without using root's login shell

I bricked the login of my root user by removing zsh while it was still the default shell. Now as a result will login in fail, since on login will it try to use /bin/zsh(1), which is missing. Only one ...
4
votes
0answers
834 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 ...
3
votes
0answers
545 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 ...
2
votes
0answers
183 views

Why the “ passwd ” command give the root shell without password?

I have a Fedora server in which every time I execute passwd it automatically logins to root with no password necessary: Also, passwd is unable to change root password. Furthermore, root account is ...
2
votes
0answers
71 views

modprobe in setuid contextmodprobe in setuid context

In CVE-2017-0358, author notes that The issue is that /sbin/modprobe is not designed to run in a setuid context. As the manpage of modprobe explicitly points out The MODPROBE_OPTIONS environment ...
2
votes
0answers
258 views

How to increase the root partition in embedded Linux with fdisk and resize2fs when root partition is in between two important partition

I am using DE0-Nano-SoC / Atlas board. The connection to this board is through the Putty running in host computer.I have a problem to increase the root partition. root@socfpga:~# fdisk -l Disk /dev/...
2
votes
0answers
629 views

How GRUB determines the Linux root partition that it pass to the kernel with “root=”?

When the GRUB bootloader boots Linux, it pass the name of the root partition (where /sbin/init is) to the kernel through the root= kernel parameter in order for the initrd to be able to mount the real ...
2
votes
0answers
5k views

checkPermissions Missing write access to /usr/local/lib/node_modules

I tried to install the npm install pug, could not because of the permisions, got this: checkPermissions Missing write access to /usr/local/lib/node_modules However im logged in as as root Linards:~ ...
2
votes
0answers
909 views

How to mount usb drive without root or fstab?

I know this is one of those questions that have been debated up and down the web. But I still want to have some opinions on this. It is about mounting a usb-drive or usb-stick as a normal user. I ...
2
votes
0answers
477 views

Bluez bluetoothd requires root for all processes interacting with it

I've upgraded my bluez installation to version 5.41 on my Ubuntu xenail box (16.04). I'm trying to do some testing with a piece of bluetooth low energy hardware so I'm staring bluetoothd with the ...
2
votes
0answers
244 views

Automatically start named pipe reader on startup?

I'm trying to run a script with root access from PHP. I can't do that because Apache's user, www-data, don't have root access because of security reasons. To fix that, I was advised to use a named ...
1
vote
0answers
327 views

How to use service to start/stop app with non-root access?

RHEL 7.5 Currently installed an application as root in /app. As part of administration, application will start/stop using /sbin/chkconfig & /sbin/service utilities All the application binaries ...
1
vote
0answers
38 views

Is there a way to run a program at startup and in the background without root access?

I'm trying to have it so that my program is able to run at startup and in the background without having the user to be root. Ideally this would happen at the installation of the program and not using ...
1
vote
0answers
113 views

du command shows larger size than nand erase block size in ubifs. How to check the exact size in ubifs?

I use UBIFS for rootfs. I would like to check the size of each direcotries in /. When I checked with du command, it shows larger than mtd size. Would you tell me the way how can I check the correct ...
1
vote
0answers
27 views

How can I list which users can login without key auth?

I have recently been charged with a large amount of Ubuntu servers that are exclusively accessed via private/public SSH authentication. There is no information regarding how these servers were ...
1
vote
0answers
151 views

root user renamed as qroot - unable to su or sudo

Mysteriously, on our public SSH server, root user is now showing up as qroot. All the files owned by root are now owned by qroot. id qroot shows qroot is UID 0 /etc/passwd file is owned by qroot /...
1
vote
0answers
173 views

Root login doesn't work with Synaptic and Apper

I have an odd problem. I have tried to use Synaptic so I can install a package. The system asks for the root password but won't accept it. I can start a terminal window and start su with the root ...
1
vote
0answers
569 views

What Can I Do To Setup a Root Login In Debian 9?

I have been using Debian steadily since Sarge. In each version I have been able to login as root, with GUI, to do my administrative needs. I NEVER use root for day to day use. I want to be able to ...
1
vote
0answers
105 views

Trying to install Funtoo (inside VirtualBox only for now, for testing) with ZFS for boot/root - failed install and booting

Following guide https://www.funtoo.org/ZFS_Install_Guide everything works great, until in section "Create optional Datasets" at "Build directory": zfs create -o mountpoint=/var/tmp/portage -o ...
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 ...
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
0answers
130 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
0answers
629 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 ...
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
0answers
58 views

Root a D-Link 1550-4 NAS

su - returns su: must be suid to work properly and then sudo returns sudo: must be setuid root This is on a D-Link 1550-4 NAS, running what I believe to be a modified version of SLAX Linux. I got the ...
1
vote
0answers
35 views

Lost credentials to a Linux VM

An employee, who left on bad terms, setup a linux server that we need access to but we can't login. It is setup on a hyper-v VM. When booted up it quickly loads the essential drivers then begins the ...
1
vote
0answers
321 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 ...
1
vote
0answers
150 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 ...
1
vote
0answers
883 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 ...
1
vote
0answers
224 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
0answers
831 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
0answers
3k views

removing `nullok` from system-auth prevents any root password

[ this is a follow-up on my post on ServerFault : https://serverfault.com/questions/661136/root-accepts-any-password-how-to-change-to-a-real-password ] On an old system the root account accepts any ...
1
vote
0answers
451 views

Which Privileges Should Assign For Create Raw Sockets

I want to run an ICMP command to ping an IP Adress at Java: InetAddress.getByAddress("XXX.XXX.XXX.XXX".getBytes()).isReachable(1000); However there is a security restriction that: Normal users are ...
1
vote
0answers
546 views

how to write dd command to replace backup image of root partition?

I have installed rhel6.5 in my pc. After that I have changed some configurations in file system. now I have taken backup image of /dev/sda1 which is a root partition of 15gb in size using the command ...
1
vote
0answers
774 views

OpenEmbedded: root account doesn't exist!

I'm using the current OpenEmbedded system from: http://git.openembedded.org/openembedded-core/tree/ (For what it's worth, I'm also pulling in layers from http://git.openembedded.org/meta-openembedded/...
0
votes
0answers
20 views

Restrict root shell access

Background : 1. I have two users admin and root. admin user is not in sudoers and only runs a menu of restricted commands. 2. root account access is restricted to shell based protocols like scp, ssh ...
0
votes
0answers
37 views

How to list all services (daemons) on a Unix system that can be started by current user, but that will run as root?

How to list all services (daemons) on a Unix system that can be started by current user, but that will run as root? I'm studying cyber security and plays with capture-the-flag machines to enhance my ...
0
votes
0answers
55 views

How to unlock the login for the root?

How to unlock the login for the root? In Ubuntu 14.xx and previous versions of Ubuntu, it was possible to log in to the graphical session as root. Now i can't do this anymore. How to unlock the root ...
0
votes
0answers
30 views

What is admin://<filepath>?

recently I've used the next command xed admin://<filepath> and not sudo xed <filepath>. I've tried to find some infos about the first command but I've do not found anything. I presume ...
0
votes
0answers
79 views

Ubuntu 16.04 - Cannot SSH with root user, login successfully but closed immediately with return code 254?

I could SSH to 1 server with a non-root user. However, I tried to enable root login at /etc/ssh/sshd_config with this content: # Package generated configuration file # See the sshd_config(5) manpage ...
0
votes
0answers
57 views

Give root's permission to restricted user using PAM and Linux capabilities

I want to give root's permission (or root account) to my test's user not using wheel-group or sudoers on CentOS 7. Instead I would like to use module pam_cap.so and linux capabilities. I try this: ...
0
votes
0answers
68 views

su does not work in rescue.service for ExecStart

The default value of ExecStart in /lib/systemd/system/rescue.service is: ExecStart=-/bin/sh -c "/sbin/sulogin; /bin/systemctl --job-mode=fail --no-block default" This doesn't work if your root ...
0
votes
0answers
37 views

Raising permissions of account “dummy” when executing command from “root” as “dummy”?

Context: While trying to execute command su a -c task as user dummy when being logged (with sudo su in as root on Ubuntu 16.04, I receive the following error message: root@DESKTOP-344ab:/home/dummy#...
0
votes
0answers
21 views

archlinux: running dolphin file manager as root: how to increase font size for drive listing and menu bar?

when running dolphin in root mode, the drive listing on the left panel and menu bar on the top are displayed in very small font: is there a way to increase the font size to make it more comfortable ...
0
votes
0answers
41 views

Open file manager as root resulting in repeated password requests.. why? Any solution?

With the new Ubuntu 18.04 base of the Linux Mint 19, I had to change my Bash function in .bashrc in order for it to work as follows... I am running the following as a user, it is supposed to ask for ...
0
votes
0answers
120 views

Cannot kill my lsof processes even as root

My lsof is hung so bad that I can't even kill -9 it. Initially, it was owned by another process, foo. I tried killing foo, hoping that lsof would also go way. But while I was able to kill -9 foo, now ...
0
votes
0answers
39 views

What is the directory “/home/[username]/.checkers” and why is it owned by root?

This is for a website that has been passed from one WHM/Cpanel hosting environment to another. It's running the Loaded Commerce shopping cart and ShipRush shipping plugin. The ShipRush plugin needed ...
0
votes
0answers
74 views

Crontab is deleting my jobs or reverting to a previous state?

I have found a similar problem (Crontab resetting itself) but it does not provide much insight. I am new to using crontab and am having the same problem with my crontab be reverted to a previous state ...
0
votes
0answers
72 views

Root/non-root user permissions to edit file

I am running scriptA.sh as root. Inside the script I need to echo data into FileA. FileA is owned by user1. FileA is located under /usr/local and has the following permissions: -rw-r----- 1 user1 ...