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.

1
vote
2answers
14 views

Set the password for the first build of openwrt

I want to build an openwrt source and set everything up through the menuconfig section But there are no settings to set the password Which part should I change or which section should I add? I am ...
5
votes
2answers
559 views

Error when running ((x++)) as root

I make bash script temp.sh with the following content: age=0; ((age++)); When I run it as a normal user, it runs fine. But when i run it as root I get error: ./temp.sh: 4: ./temp.sh: age++: not ...
0
votes
1answer
61 views

su: cannot open session: Permission denied

I'm getting "access denied" attempting to login as root on the console and via ssh (Yes, I know root ssh access should be disabled - I've just inherited this box). I can login as non-root user who has ...
0
votes
1answer
50 views

If - Else statement: determining whether the user is the administrator

read -p "What is your name?:" ANSWER if ["$ANSWER" == "root"] then echo "Hello, administrator" else echo "Hello, $ANSWER" fi If I answer "root" in the console, I assumed to ...
0
votes
1answer
32 views

Can I extract an overwriting tar archive, while retaining the ownership of the original destination file(s)?

I have a particular use case, where I want to extract a tar archive (as root) and intentionally overwrite some destination file(s) with the contents of the archive. This is all fine and easily ...
0
votes
1answer
26 views

Cannot edit crontab from service

I'd like to schedule a daily autoshutdown via sudo service autoshutdown start or either abort it via sudo service autoshutdown stop. /etc/systemd/system/autoshutdown.service [Unit] Description=...
0
votes
0answers
24 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
1answer
33 views

Ubuntu 16.04 root password suddenly not working(even after resetting) [duplicate]

I disabled password for login at User Account setting, and later when I ran sudo, I get "Sorry, try again." It seems my previous password doesn't work anymore. I also tried hitting enter directly but ...
1
vote
1answer
39 views

Can still cat/tail/head/etc. a file without the read permission

So as root, when I try to cat a file without the read permission, I can still see what's in it, which seems kind of strange, because as root I cannot write to a file without the w permission (it opens ...
-1
votes
2answers
78 views

What is the root password for raspbian jessie or debian 9

What is the default root password for raspbian jessie or debian 9? I have Raspbian Jessie stretch iso "Raspberry Pi Desktop" or pixel Virtualbox and I need to install keys with root "su", what is the ...
0
votes
2answers
50 views

How to extend root partition by shrinking home

Recently I've found out that soon I will run out of space on my / (root) partition. I've done some research on extending root partition, however, it wasn't too informative (mostly everyone say it's ...
0
votes
1answer
21 views

readonly for root ( -i flag disabled )

here's my problem : a friend set me a readonly bad wallpaper on ubuntu gnome. I want to change it. : ) I found the file i have to modify : /etc/dconf/db/local.d/locks/00_default-wallpaper but when ...
0
votes
1answer
62 views

How to avoid password prompt when starting Synaptic?

Whenever I start the Synaptic package manager, it asks for a password. How do I make it skip that dialog? I'm using Debian 9.8.
0
votes
0answers
45 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 ...
2
votes
1answer
37 views

Switch to root user always failed after modifying /etc/pam.d/common-password

I'm using ubuntu 18.04. To strengthen my pass-word policy I modify my /etc/pam.d/common-password like this: # here are the per-package modules (the "Primary" block) #password requisite ...
0
votes
1answer
112 views

Docker running an app with NET_ADMIN capability: involved risks

I'm trying to run an app in a docker container.The app requires root privileges to run. sudo docker run --restart always --network host --cap-add NET_ADMIN -d -p 53:53/udp my-image My question is: ...
6
votes
2answers
848 views

Why doesn't root need the password to run “sudo” even when “NOPASSWD:ALL” isn't written in /etc/sudoers [duplicate]

In /etc/sudoers, there is always: root ALL=(ALL:ALL) ALL However, the root user (with UID 0) doesn't need to enter password when they run sudo command. For other users, a password is required ...
0
votes
0answers
29 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
56 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
46 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: ...
-1
votes
1answer
66 views

Administrative password not accepted

I just finished installing Debian 9.8 Cinnamon and set up a root pwd and my user pwd. Now I want to install veracrypt and it asks me for my administrative password, but the root password doesn't work. ...
0
votes
1answer
41 views

Running a service on CentOS as a system user other than root

I've created a system user jackett (useradd -r jackett) and I'm trying to run a systemd service under it on CentOS 7. Service File: [Unit] Description=Jackett Daemon After=network-online.target [...
0
votes
1answer
27 views

Is there a way to retrieve a root mysql password (no reset)

Is there a way to get back / retrieve a mysql root password. I mean get it back : not resetting it (I already know how to reset it and I use the reset method currently).
0
votes
0answers
33 views

Why is / called root, but there's also a use called root? [duplicate]

So in a unix system, / is root. But the default admin is also root. So why do these two quite different things have the same name.
-3
votes
1answer
33 views

Scientific Linux 7x - Too much system hardening!

Some Linux users like my company build Linux servers to use on factory production lines. We write software to load BIOS and FLASH memory and test our products. We constantly need to reboot these ...
0
votes
1answer
96 views

What is the difference between using crontab -e and /etc/crontab [duplicate]

I wish to run stuff from startup and also trigger reboots using cron. I was using sudo crontab -e and adding commands there. The commands work apart from the reboots. The reboots do not happen all ...
1
vote
1answer
70 views

No root permission in a docker container image

I test a Docker container (created from Nvidia CUDA image) started with the command: docker run -i -t xxxxxx /bin/bash I can see the root prompt, but still don't have privileges for some operations; ...
0
votes
1answer
53 views

Always open as root?

I have to right-click in my File Browser to open as root (more specifically, any time I want to edit files), and I'd like to prevent having to do this step every time. I edit files a lot, obviously 😂 ...
0
votes
1answer
157 views

If rc.local is run as root why can't it touch a file

I wish to execute a script every time on boot-up using /etc/rc.local. My script for example is called startscript.sh which is stored in /home/debian as below. It first tries to create a file called ...
0
votes
1answer
52 views

Difference between running a process as root and running process with all the linux capabilities

I have a docker container which runs perfectly fine in a kubernetes pod when privileged:true is set in the specification. But when I run the same docker container, by giving all the linux capabilities,...
0
votes
0answers
46 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
2answers
91 views

Who is marc, the default receiver of root mail in /etc/aliases?

Is 'marc' some person in the Linux/Unix community? In /etc/aliases on a default centos install, the bottom line reads: # Person who should get root's email # root: marc Or is it just a ...
1
vote
1answer
41 views

Echo'ing into a file only works with root and not sudo [duplicate]

I have a directory /sys/class/leds/ with the file bananapro\:green\:usr/trigger that controls an (green) onboard led. The contents of this file just contains the modes for the led. As root, I can run ...
0
votes
3answers
160 views

What happens if one tries to access a root directory on a hard drive from another computer?

Lets say you have a directory which is only accessible with root privileges. What happens if someone takes the physical drive out of the computer and mounts the filesystem (maybe even using another ...
0
votes
2answers
145 views

What happens if I change chmod permissions to rrr [closed]

I want to try to change /bin/chmod permissions file to rrr but afraid to loose my machine. What happens next if I change them?
29
votes
1answer
3k views

Given that root has all privileges, why is root ALL=(ALL) ALL in /etc/sudoers? [duplicate]

I looked at this question: Trying to understand the difference between “modernNeo ALL=(ALL:ALL) ALL” and “modernNeo ALL=(ALL) ALL” in the sudoers file I still have a question. Since the "root" user ...
2
votes
0answers
53 views

Recovering from chown -R <user> /usr/bin [duplicate]

I ran chown -R <user> /usr/bin in arch thinking I could easily fix it if anything went wrong. Unfortunately, that has proven to be incorrect. As a result of this, startx won't run i3 ...
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
1answer
395 views

change root password in CentOS 7 [duplicate]

I was reading about changing root password in CentOS 7. it's totally different from centOS 6. change root password I was wondering about the steps for example why should I change ro? what ...
1
vote
0answers
88 views

Higher privilege level than root on macOS [closed]

MY version of the macOS is 10.13.6 What I want to do is get a privilege that is higher than the root privilege. The reason I want this is because I would like to create a completely undeletable file/...
1
vote
2answers
121 views

rsync as root - does it change the ownership of synced files?

I'm going to be using rsync to sync an old home folder onto a backup drive. I'm thinking of using rsync as root. Is there a way to avoid changing the ownership of the files etc I copy?
0
votes
0answers
18 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
1answer
209 views

use chroot to lock down sftp access without root owning folder

Everything I am reading says that for chroot to work with sftp root has to own the folder. I want to make it so a user can only sftp to a sub-directory in their home folder like /home/user/some/folder....
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
1answer
72 views

Does a user have to log in to run a process and become its owner?

In general, does a user have to log in to run a process and become its owner (ruid, or euid)? Does this apply to any user or any non-root user? For example: In the boot sequence of Linux, the kernel ...
2
votes
1answer
33 views

Allow PAM module to always access a root only file

I have a custom PAM module that needs to access some sensitive information on the hard disk to perform its job. These files would ideally be stored with root access permissions only. I've been ...
1
vote
1answer
243 views

How Do I Extend the Root Partition Backwards

I installed Debian about 5-6 days ago alongside Windows 7 and I've got it running almost perfectly besides a few bugs here and there. Yesterday I booted into Windows and shrunk the C: drive so I could ...
0
votes
0answers
102 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 ...
1
vote
1answer
276 views

Gain Root Access to remote Server with sudo, su, and pkexec not working

I'm running CentOS7 on an old dell box that I repurposed as a home server. I also ssh into it from a remote location to make sure everything is running smoothly, and to do things like rsync my laptop. ...
1
vote
2answers
99 views

Is it possible to hide an area of hard disk from root user?

Do linux kernel have a feature that can be used to hide an area of hard disk (e.g last 1GB of hard disk) from root user or at least make that area completely unwritable by any means?