Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [root]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
107 views

Lost sudo. Beyond salvation?

I made a mistake and gave a container Homepage access to the docker.sock and briefly after I discovered that sudo is no more. sudo sudo: /etc/sudo.conf is owned by uid 1000, should be 0 sudo: /etc/...
Arelius's user avatar
  • 73
0 votes
1 answer
36 views

Unreadable file as root on NTFS HD

I have an NTFS partition on an HD. This partition contains 6 files which I can't read in any way. I have tried reading them as root, doing chmod, chown and mount -o rw,remount ... nothing worked. # ls ...
user2543740's user avatar
1 vote
1 answer
69 views

Fedora - Migrate root filesystem to new drive / partition

I need a quick bit of help. I've migrated my /root and /home directory off a BTRFS partition to and EXT4 partition, because, for some strange reason .. BTRFS always fail! .. However, now that the EXT4 ...
E Net Arch's user avatar
0 votes
0 answers
40 views

What caused USER to have "root" as OWNER and GROUP instead of the user's name? How do I change it?

/home (machine 1) PERMISSION | OCTAL | OWNER GROUP NAME drwxr-xr-x | 755 | root root . drwxr-xr-x | 755 | root root .. drwxr-xr-x | ...
SystemTheory's user avatar
0 votes
2 answers
53 views

My user account is no longer a su, and I don't know the root password. What are my options?

In Kubuntu 23.10, while updating my account photo in the System Settings > Users GUI, I must have accidentally changed my account type from Administrator to Standard, as I'm no longer a su. I guess ...
Jacob Stamm's user avatar
0 votes
0 answers
40 views

Need password authentication while runing "systemctl stop .service"

I am looking for a way to add one more password authentication to run systemctl stop abc.service via root access. I am using Rocky Linux. I have no idea if it is even possible. Please help.
Anuj Yadav's user avatar
0 votes
1 answer
64 views

How to programmatically determine whether superuser elevation is necessary to invoke code?

When providing code to another, it appears to be good practice to remove all elevation-specific code — that is, provide apt update rather than sudo apt update (or su -c 'apt update'). However, this ...
RokeJulianLockhart's user avatar
0 votes
2 answers
122 views

Run shellcode as root in a buffer overflow attack?

I'm trying to exploit the following code: #include <stdio.h> #include <string.h> int main(int argc, char** argv){ char buffer[100]; strcpy(buffer, argv[1]); return 0; } with ...
r3k0j's user avatar
  • 15
0 votes
2 answers
64 views

How to automatically source your bashrc file when you become a root user [duplicate]

At my work work we work with multiple people on several RHEL servers. I always login to my Linux servers as my regular user (duh). Assume I have a added extra functions/aliases to my .bashrc file. Is ...
ansible_usah's user avatar
0 votes
1 answer
28 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
1 answer
110 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
100 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
1k 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
  • 525
0 votes
0 answers
46 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
62 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
2k 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
  • 29
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
94 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
48 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
1 vote
0 answers
23 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
  • 13
0 votes
1 answer
49 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
1 vote
1 answer
241 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
51 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
486 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,765
1 vote
2 answers
205 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
1k 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
579 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
  • 972
-2 votes
1 answer
431 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
69 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
  • 733
1 vote
1 answer
146 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
68 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
93 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
1k 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
249 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
138 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
1k 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
  • 3,625
0 votes
0 answers
164 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
123 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
  • 287
0 votes
0 answers
508 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
718 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
88 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
97 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
577 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 ...
MisdeBug's user avatar
0 votes
0 answers
402 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
65 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
87 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
1k 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
171 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
2 3 4 5
24