Questions tagged [root]

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

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

How to login as root user after deleting system-auth

I wanted to use an old password for my account.  I am using OpenEuler OS distribution.  After searching on Stack Exchange, I found this link. How can I reuse an old password? I followed the exact same ...
Zamaar Shahid's user avatar
1 vote
0 answers
43 views

No DNS for root?

It seems my configuration for root doesn't have access to DNS even though my lower-privileged user does. $ ping google.com PING google.com (142.251.32.110) 56(84) bytes of data. 64 bytes from 142.251....
Stephen Rasku's user avatar
0 votes
1 answer
75 views

Files created by user in a mounted partition show root as owner

I have a dual boot system (Windows 10/Archlinux) and I have created a NFTS partition which is mounted at startup via /etc/fstab so I can access it from both OS'es. The fstab file shows that the ...
JulioOAO's user avatar
2 votes
1 answer
995 views

How does rfkill work without being root (or using sudo)?

I saw this statement at the end of this answer: PS: I have no idea why rfkill works when run as an unprivileged user. On my Mint, it doesn't have a setuid or setgid bit. I was curious, and looked on ...
cocomac's user avatar
  • 503
0 votes
0 answers
29 views

dpkg pip-installs wheels as 'root' user

I've created a DEB package containing a bunch of Python wheels which the postinst script pip installs. The problem is that because the DEB file apparently has to be run as sudo, e.g. dpkg -i acme-...
Olumide's user avatar
  • 177
0 votes
0 answers
56 views

Xorg failed to find /root/.local/share/xorg/Xorg.0.log Advice

I am currently working on a display manager for linux using the startx command. The program is running as root (as a display manager normally does) and then drops to a normal user (in this case ...
Kuglatec's user avatar
-1 votes
2 answers
478 views

can not open access to console the root account is locked (kali linux)

when I start my computer, I have this message: can not open access to console the root account is locked I had a quick check on the web and I found this: How to fix "can not open access to ...
theo_vg's user avatar
  • 19
1 vote
0 answers
29 views

permission denied even as root [duplicate]

❯ ./my-project zsh: permission denied: ./my-project I just make a partition out of my hard drive (not the same drive with root) with type ext4 so i think it should be fine using it on my linux. # /...
Mohammad Alimul's user avatar
0 votes
1 answer
93 views

Home folder in /etc

I was yesterday trying to mount a partition & playing around with firejail, when I realized I have a ${HOME} folder (written just like that) in my /etc folder, even if my home folder is in the ...
maverickar's user avatar
0 votes
0 answers
46 views

How to disable root account on MacBook Pro if I don't know root password

I bought a used MacBook Pro 2017 from a reseller but I found restrictions in accessing many places. Then I realized this machine is already configured with a root user which I don't even know. How ...
abby rj's user avatar
0 votes
0 answers
21 views

What does -p argument do in this command "/bin/bash -p " [duplicate]

if we have the SETUID and SETGID set for the bash binary. -rwsr-sr-x 1 root root 108424 Mar 10 2020 /bin/bash and we execute the command: /bin/bash -p we will find ourselves escalated to they ...
M4raa's user avatar
  • 3
0 votes
1 answer
47 views

New notebook and factory partition

First time using a linux, I'm using Debian 12. My notebook arrived with the following partition (512gb SSD), in this order (left to right in the disk viewer): /boot/efi - 537mb /root - 20gb recover (...
GVianaF's user avatar
0 votes
1 answer
154 views

Is there some universally recommended Reserved block count (for root) for large Ext4 drives?

By the following question: Is there some universally recommended Reserved block count (for root) for large Ext4 drives? I specifically mean the following: Let us consider (almost) everyone has a ...
Vlastimil Burián's user avatar
0 votes
0 answers
38 views

noinitrd is ignored, always runs initrd copy of /init

I use an initrd currently on an imx8 processor that uses buildroot for a base filesystem. (kernel is 5.10.52) For debugging purposes, I want to bypass the initrd and load the filesystem I copied to a ...
Floyd Brown's user avatar
3 votes
1 answer
435 views

effective vs real user ID : why doesn't it return root as effective ID in my example?

I did some reading about the difference between real and effective user ID. I thought I understood, but I have a doubt : according to my comprehension, in the example below the command $ id -un should ...
ChennyStar's user avatar
  • 1,643
1 vote
2 answers
198 views

Installing ufw as root vs installing using sudo

Is there any security issue if I installed ufw as root instead of a non-root user using sudo? I checked Not installing as root but the answer related to what I am installing as I understand.
MAMProgr's user avatar
  • 111
0 votes
2 answers
853 views

Can't enter in sudo on Debian 12

I'm sitting on a Virtual Machine on Debian 12, the password for root is simple, it's the letter q, but when I write, say, sudo -i and enter the password, the terminal only displays Sorry, try again. ...
Pyr0Guy's user avatar
0 votes
1 answer
311 views

Is setting CONFIG_STRICT_DEVMEM=y safe?

I was playing around with /dev/mem and found out that even as root user you cannot access the whole file if CONFIG_STRICT_DEVMEM=y. It was new to me that there are mechanisms to prevent the root user ...
zomega's user avatar
  • 960
-2 votes
1 answer
285 views

Root password shows incorrect in terminal but is correct in system [duplicate]

I am using debian 12.1.0. I setup a root password while installing but when I go in terminal and use sudo, it prompts me to enter password. I enter it and it shows incorrect. Then I went to settings ...
Yubin Dhami's user avatar
0 votes
1 answer
59 views

Is it possible to grant a specific privilege to a user without sudo?

I'm not going to add sudo in my Buildroot environment for RPi 3 B+ since I just need apache2 to update my system time with date -s TIME. Is there a way to grant this permission without installing and ...
Mark's user avatar
  • 723
1 vote
1 answer
107 views

Logout other users from KDE/plasma as root

I'd like to be able to automatically log out users from their KDE/plasma sessions by a script running as root. The log-out should happen "gracefully", i. e. applications should get a chance ...
Torsten Crass's user avatar
0 votes
1 answer
61 views

du report wrong usage and root folder is so big

In Debian the /root/ directory is so big but du show nothing inside it. root account is just a supervisor/administrator/superuser user, there is no folder for this account in home directory. This ...
Denis da Mata's user avatar
0 votes
0 answers
79 views

Not Enough Space in /ROOT Partition [duplicate]

I need help locating the specific file that has filled my root partition and the cause of inconsistent file storage usage. this is the output of my df -h Filesystem Size Used Avail Use% Mounted ...
geek's user avatar
  • 177
0 votes
1 answer
695 views

how to run pulseaudio systemwide as root on debian?

I added these lines into /etc/systemd/system/pulseaudio.service file: [Unit] Description=PulseAudio system server [Service] Type=notify ExecStart=pulseaudio --daemonize=no --system --realtime --log-...
John Gragor's user avatar
0 votes
1 answer
169 views

Can www-data control root files on Ubuntu web servers?

I have read about a bazillion posts about how to set up web server ownership, directory, and file permissions. I have heard use root. Don't use root, use www-data. Don't use that, use a different user ...
DontAsk's user avatar
1 vote
1 answer
116 views

How can I run Doccano as the root user without knowing my root password on EC2?

I use Doccano on an AWS EC2 instance running Ubuntu 22.04. To run Doccano, I use doccano webserver --port 8000. But now I'd like to have Doccano serve its webpages on port 80. Therefore, I have to run ...
Franck Dernoncourt's user avatar
7 votes
1 answer
956 views

How to log into CUPS admin with Debian "rootless" system?

When I installed Debian 12, I was given the option to not allow root logins. Instead, the system lets me use su each time I need to do some minor maintenance. When I go to http://localhost:631/, ...
Village's user avatar
  • 4,965
0 votes
0 answers
129 views

Can't access files in ZFS rpool /root directory in live recovery environment, but can access others outside /root

my Ubuntu installation fails to boot. Things hang after entering the encryption key with message WARNING: Pool 'rpool' has encountered an uncorrectable I/O failure and has been suspended. When I boot ...
numerous's user avatar
0 votes
1 answer
96 views

Which first level directories in Linux should be owned by user?

Today, I have accidentally noticed that the following directories of the / are owned by user, rather than root: /home /lost+found /media /mnt /opt /snap /srv /swapfile /var I have no idea how that ...
S. N.'s user avatar
  • 177
0 votes
0 answers
429 views

Cannot open access to console, the root account is locked. See sulogin (8) man page for more details (fedora-dualboot)

After manual and automated moves in privacy issues with some tools without being familiar with more specific things, the specific issue was created after a restart.Meanwhile after restarting windows ...
Crash Bandicoot's user avatar
0 votes
0 answers
578 views

How can I run a service that depends on xdg-desktop-autostart.target as root?

Is it possible to run the ExecStart command in a systemd service with root privileges while depending on either xdg-desktop-autostart.target or graphical-session.target? If so, how? For some context, ...
heduncook's user avatar
0 votes
0 answers
76 views

How can I force linux to limit the amount of time I play "games" on it per day, that would be protected from root override?

Problem: Struggling with video game addiction. https://www.reddit.com/r/Steam/comments/v0wj7i/is_there_a_way_to_limit_gaming_time/ Virtually no existing ways to limit gaming, outside therapy. I need ...
Anon's user avatar
  • 215
0 votes
0 answers
71 views

Root accout is locked on ParrotOS, need clarification on rescue.service

Aplogies but I'm new Linux user and would appreciate explanation. The issue is discussed here. OP has suggested to set SYSTEMD_SULOGIN_FORCE=1 using two steps as shown in the ss: I'm not sure how and ...
aryavin's user avatar
0 votes
1 answer
420 views

Unable to reboot remote machine over ssh

I am working with an embedded system and would like to initiate a reboot from a remote machine. I have tried various methods, including ssh -o StrictHostKeyChecking=no root@${HOST} /bin/systemctl ...
mistyron's user avatar
0 votes
0 answers
287 views

Execute a virsh command as another user in interactive setup script

I am using a script to setup some Fedora machines and I can not execute a Virsh (cli tool for Libvirt) command as another user. The output given indicates that the command was successful but it fails ...
MathsJoe's user avatar
0 votes
0 answers
32 views

Why root user needs `sudo` to execute some commands [duplicate]

When I switched to root user using su command, I still need to use sudo reboot instead of reboot to reboot the system, otherwise bash returns bash: reboot: command not found Why is that the system ...
Yiyang Yan's user avatar
0 votes
2 answers
59 views

How does su detect fakeroot?

If I run su, it asks for the password of the target user. If i run it as root, it does not ask for a password. But if I run it in fakeroot, how is it possible that it will ask for a password? Should ...
jp_'s user avatar
  • 27
0 votes
1 answer
77 views

Changing a root's file on external drive from another system

If I use one system to format an external drive (not an encrypted partition, just a standard filesystem) and then create a file owned by root and then mount that drive on another system, will I be ...
donaastor's user avatar
  • 214
0 votes
2 answers
1k views

How to use PAM to allow 'root' access only from local terminal?

I am new to PAM and its quite complex to pinpoint a specific module or config file, thus asking this. I want to allow root access only from the console i.e if someone is physically present on that ...
sword's user avatar
  • 11
0 votes
1 answer
911 views

In RHEL 9, SSH root login is not permitted. How do I set up managed nodes with Ansible? [closed]

I recently passed the RHCSA exam (RHEL 9). And I have started studying for RHCE EX294 with non-Red Hat affiliated materials. All of them are based on RHEL 8. In RHEL 8, the default sshd configurartion ...
Nameadd's user avatar
  • 41
0 votes
1 answer
134 views

`chroot` bash not working after copying both the binary and its dependencies

I have reviewed the existing questions and responses but none worked in my case. So I'm opening a new question. OS: Debian Here are my steps: First, copy /bin/bash: $ sudo mkdir -p /mychroot/bin $ ...
yk3rt's user avatar
  • 11
1 vote
2 answers
1k views

I am Unable to access to root user in oracle linux server

I was configuring Ansible on my server where I created an Ansible user on all servers and gave them sudo access so whenever I ssh to another server using an Ansible user it should not ask me for a ...
user21824488's user avatar
0 votes
1 answer
127 views

Official Spotify App is able to acquire root permissions as non-root user

OS: Debian 11 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64 GNU/Linux KDE Plasma 5.20.5 Spotify: spotify-client/stable,now 1:1.2.8.923.g4f94bf0d amd64 [installed] I've discovered an ...
user avatar
0 votes
0 answers
228 views

Node JS Installation on CentOS using Root Login

I have installed node js( using sudo yum install nodejs) on centos 7 using root which seems find as root user but not accessible for other users. When I check as root user I am able to see version ...
Harish Kumar's user avatar
0 votes
1 answer
716 views

Why are there non-system users snap_daemon and snapd-range-524287-root with same rights as root user?

Who are snap_daemon and snapd-range-524287-root users, I didn't add, as shown in /etc/passwd, added as regular root users ( by snapd program? by Canonical ), who have the same sudo rights as my root ...
CuriousPanda's user avatar
0 votes
0 answers
232 views

How to grant write access to USB device?

I'm working with libfprint and when running my code that opens a USB device, I get the following error libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/003, errno=13 ...
Parker's user avatar
  • 181
0 votes
0 answers
817 views

Different user other than "USER root" in Dockerfile while executing crucial "RUN apt-get..." commands

I recently experienced a Mass Email attack where someone "sniffed" my email and was using it as a "From:[email protected]" in the mass attack. I believe my email info get sniffed ...
python_mainly's user avatar
2 votes
0 answers
554 views

Linux root directory owned by 911:911

I run a Ubuntu 20.04 home server and, while doing something else entirely, happened to notice that my root "/" directory is apparently owned by the user:group 911:911. Checked passwd and ...
PlunderBunny's user avatar
0 votes
0 answers
189 views

How to cp all files within /var/log without using sudo

This is in shell script. I want to create a directory copy of /var/log while preserving directory structure (so not tar). I do this by making a directory and using cp -R /var/log cpdir However, some ...
John Smith's user avatar
0 votes
0 answers
694 views

Buildroot Login without Root Password

Starting with some of the trunk builds of Buildroot in 2023, I've been unable to login to my buildroot systems with getty. Honestly, I'd rather a mechanism to just be dumped into a root shell. But, ...
Charles Lohr's user avatar

1
2 3 4 5
24