Questions tagged [root]

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

Filter by
Sorted by
Tagged with
-1
votes
3answers
33 views

How do I use a file with a setuid binary bit to access root?

I have a file with setuid binary permissions. I need to access root and I'm not sure how to do it with just this file. This is merely for practice purposes only. Will anyone help me?
1
vote
2answers
36 views

Running a command with root priviliges without SUDO and not as root user

How can you run a command (e.g. iftop or similar) that requires root privileges from a non-root user and without using SUDO in front? Alternatively, how can you give root privileges to a user ...
0
votes
1answer
11 views

Is there a 'good' way to enable a user to use wg-quick without root access?

I've set up wireguard and I am very happy with it, I can't help but wonder two things though: How come wg-quick can only be used by root ? Can I give another user permission to do wg-quick <up/...
1
vote
1answer
21 views

Why is there a ROOT (as opposed to root) account for MySQL and MariaDB?

As far as I can tell, the MySQL and MariaDB database "ROOT" account is completely separate from the operating system's "root" account. Why did someone consider it a good idea to create the ambiguous ...
1
vote
1answer
49 views

Is possible to execute command as root when switched from root to user using su?

Same as topic. I'm root. Then switch to user1 using su - user1 Then execute command as root without sudo or suid/chmod. Is it possible? One person probably did this but tells me it's a magic trick....
0
votes
1answer
25 views

Create startup process that requires both root and other user

I'm trying to create a service that starts a process. I want the startup of the process to be able to do a few commands as root and then run the rest of the process as a less privileged non-human ...
0
votes
1answer
27 views

Problems with sound in firejail

I am using Parabola (based on Arch) and I would like to use firejail to sandbox one or two less trusted applications (steam, in particular). However, when running applications in firejail (even with ...
0
votes
0answers
42 views

Run a script as root with SUID [duplicate]

I created a simple script on Ubuntu Server 18.04: #!/bin/bash apt update apt upgrade then I changed the owner to root # chown root update.sh then I added SUID bit and execution bits for user and ...
0
votes
1answer
19 views

Disable local user PAM, enable root user with LDAP

I am trying to setup a Linux machine with LDAP authentication and root account enabled. There is no issue with the LDAP server and everything works fine. I wanted to disable local users so I tried ...
0
votes
1answer
89 views

How to create a linux user where sudo promps for the root password and not current user

I created a new user with adduser but when I tried to sudo from his account I got xxxx * is not in the sudoers file. This incident will be reported.. So I started tampering with the visudo command... ...
2
votes
1answer
107 views

How to install sudo, when I don't have sudo or su

I'm operating within a Kong API Gateway Docker container, and am trying to install some basic package handling. Ultimately, I need to be able to use sudo. The Docker image comes with only busybox bin ...
2
votes
0answers
20 views

Shutdown from a script executed by cron as root

Background I'm trying to write a script (see end of the question) that checks the temperature on Raspberry PI and shuts it down automatically if it goes too high. The script would be run by cron, ...
0
votes
2answers
35 views

Execute GUI programs as root without password

I know that in order to execute a CLI program using sudo, but without the need to typing your password, all you need to do is put user ALL = NOPASSWD: /path/to/your/program in /etc/sudoers, or even ...
0
votes
1answer
29 views

How to execute a program with sudo rights but without the root context?

I want to start my IntelliJ IDEA with privileged rights. That is because when starting my Application within the IDE it starts a SFTP server. This is only working if I have the permission to do so. ...
0
votes
2answers
54 views

Security implications of running user-writable scripts with sudo

I need to run a few commands with sudo. These commands are located either in .bashrc or ~/bin, and stored in a git repository (i.e. dotfiles). I've placed symbolic links in ~root pointing to my user'...
1
vote
0answers
38 views

Can't mount NTFS drive as root, but can as a user? (CentOS 7.6, MATE desktop)

I am not an expert, but this really baffles me: I have installed CentOS with MATE desktop and updated everything to latest using yum update. This is a dual boot machine with CentOS on a separate HDD. ...
0
votes
0answers
69 views

Iptables not recognizing I'm logged in as root

I'm running Ubuntu 18.04.3 LTS as a Virtual Machine. When I run root@:/# sudo iptables -L I get the following output: iptables v1.6.1: can't initialize iptables table 'filter': Permission denied (you ...
0
votes
2answers
43 views

Is there any way to make a text file that no users can read?

My question is very simple: Is there any way to make a text file that no users can read or write to, including root?
2
votes
0answers
22 views

Edit ssh_config without ssh connection on a remote VPS

Yesterday, I was busy setting up my server and securing it. I am a noob at code, programming and webhosting, but I am trying to host my own website. So yesterday I changed some settings in the ...
0
votes
0answers
40 views

Automatically login my account with root access [duplicate]

Hello I want to auto login my root account at the start of GNU debian 10 buster is it possible? without asking for login and password? Debian 10 Login
0
votes
1answer
19 views

multiple root access with own history

I want to get the publickey fingerprint of the user actualy logging in, to identify which user logging in as root, so i can create a bashrc for every user in a subfolder e.g. "/root/[FINGERPRINT]/....
0
votes
1answer
85 views

Launching Electron on Ubuntu WSL

I am running a WSL2 Ubuntu system. I'm attempting to follow this tutorial to launch an Electron boilerplate: https://github.com/electron-react-boilerplate/electron-react-boilerplate When running yarn ...
0
votes
1answer
31 views

restoring root_partition.tar.gz

I used tar -cvpzf root_partition.tar.gz --exclude=/root_partition.tar.gz --one-file-system / on a remote system following the information here https://help.ubuntu.com/community/BackupYourSystem/TAR ...
0
votes
1answer
41 views

root_partition.tar.gz 1.3GB -> 140GB+ when unzipped

I asked a friend to make a full backup of a Ubuntu 16.04 LTS server and he created this 1.3GB root_partition.tar.gz file on the server itself, but when I try to extract it on Windows 10 with 7-Zip to ...
0
votes
1answer
53 views

How to become administrator or root to access files when receiving “permission denied”

Just installed Ubuntu. Plugged an external drive used to store images, documents, and copies of programs. I can not access it. Says permission denied. How to fix this?
0
votes
0answers
90 views

/dev/ Permission denied

I use Ubuntu 18.04 When I install some programs (for example chromium) I get error /dev/fd/62: no such file or directory sudo does not help. I work on root. When I do 'ls /dev' I get error '...
0
votes
2answers
56 views

Can a program get root access if it gets the password?

If there's only 1 user on a system with sudo permission, can another program that ran by the user get root permission without the user knowing it if it has the sudo password?
3
votes
1answer
83 views

Solaris: is possible to permit root login on some terms?

I have a server with some serial ports. One is /dev/console, another is /dev/term/b(the ttyS1 under linux and the COM2 under dos). I want root to login under /dev/term/b but.. myserver termb login: ...
0
votes
2answers
185 views

Why cannot I become root via `su`?

Why doesn't su work but sudo -i does? When I want to become root via su, the system doesn't accept my password, but via sudo -i it works. su: Authentication failure
0
votes
2answers
64 views

Can superuser write a file having 000 access permissions?

I know that a root user can read a file even if the access permissions are all set to 0 but i don't understand about the write and execute permissions in specific. Can a superuser write and execute a ...
0
votes
0answers
38 views

How is initramfs maintained throughout the execution of the Android kernel?

So, while reading the book Operating System Concepts 10th edition, I found the concept of initramfs. I know that it is used in Linux as a temporary RAM file system to load all of the drivers to mount ...
0
votes
1answer
928 views

Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

I tried this but didn't work. How can I fix this?
-3
votes
2answers
74 views

Why does transfer files to another computer by `sudo rsync` require the destination computer's root's password? [duplicate]

I am trying to transfer a directory to another computer $ rsync -a --delete --stats -h wget 'olive:/tmp' Number of files: 5 (reg: 4, dir: 1) Number of created files: 5 (reg: 4, dir: 1) Number of ...
2
votes
1answer
70 views

Why does the /root/ directory have 700 permission by default?

I just noticed that the /root/ has 700 permission by default on Ubuntu, Debian as well as Nixos. Why is this handled differently than other directories for example /bin/? What is so special about /...
-1
votes
2answers
174 views

how to start a script with root privilege on boot?

I tried with systemctl and with crontab without success. here is the script: #!/bin/bash cyberghostvpn --country-code AU --city Brisbane --connect rights : -rwxr-xr-x 1 pat pat 71 nov 28 13:04 ...
1
vote
1answer
42 views

Why would a ssh password-based login fail?

I currently use ssh keys to connect to my server (Ubuntu 18.04). I would like to allow (in a specific, limited scope) the ability to login with passwords. Whenever I try, my passwords fail. below is ...
0
votes
0answers
27 views

How to run pcmanfm as root but restricted to specific folders?

Using the terminal. How to run Pcmanfm (PCMan File Manager) as root but also restrict to specific folder? Run pcmanfm as root and only allow it to access this folder: /home/user/Pictures
0
votes
1answer
68 views

Can't access some commands when logged in with non-root user (even after “su root”)

So, i don't understand whats happening here. I've set up a Debian 10.2 Server and configured like i did before with other Servers. Everything works fine, and because it's a local Machine and i am ...
0
votes
0answers
36 views

Crontab -l command delete this contrab that is off the root?

I cannot seem to delete this file which is located off of the root, not a user, and is displayed by the contrab -l command. -r has been tried and isn't working, perhaps because the user is root. I'm ...
4
votes
0answers
60 views

Stop systemd user services as root user

I have a systemd A@.service that every user on the server can start with systemd --user start A@1.service. As root I would like to stop that service for all users when we do maintenance. I haven't ...
1
vote
1answer
50 views

Root cannot access a directory

Long time ago I made a series of folders where I wanted to mount smb network drives at boot time. It didn't work somehow. Today I tried again, having some more time to spend, and I realized the ...
2
votes
1answer
135 views

Changing user for supervisor - error CRIT Set uid to user

I changed user for supervisor from root to non-root called dev. All is good, supervisor is running as dev: me@server$ ps aux | grep supervisor dev 25230 0.2 1.0 60404 21392 ? Ss 21:42 ...
-2
votes
1answer
108 views

How to fix “Please login as the user ”xx“ rather than the user ”root" on azure ubuntu 1804 vm?

I create an azure ubuntu 1804 vm with no root user and ssh public key. Then I try to use the script of how to enable root ssh public key login with no root account and sshpass and sudo? But I got ...
-1
votes
1answer
40 views

how to enable root ssh public key login with no root account and sshpass and sudo?

I have created an azure vm server which is ubuntu 1804 and I need to enable root ssh public key login with it. Azure do not want me to enable root ssh public key login when the server is created, so I ...
0
votes
1answer
51 views

In FreeBSD, what flag or file designates 'root' and 'toor' as immediately logging in with su privilege without needing “su” after login?

Obviously it's widely recommended not to log in directly as a superuser account, but I'm curious. What is the flag or setting that FreeBSD uses to recognise those accounts that automatically gain ...
1
vote
2answers
115 views

red terminal font when root

I'd like to make happen in RHEL/CentOS 7.6 anytime you do su and become root I want the terminal prompt color in that terminal to become red for the duration of that su session. Type exit to go back ...
0
votes
1answer
73 views

OS incorrectly switching between root and sudoer user

I have 3 users in my server: root user1 user2 When I try to change my current user from user1 to user2 by using the command sudo su user1, my operating system sometimes changes instead from user1 ...
0
votes
1answer
50 views

Cannot loggin into root: failed to execute q: No such file or directory

So this morning I tried to login into my root and I got an error saying: su: failed to execute q: No such file or directory. In /etc/passwd everything seems to be normal. Tried logging in through: ...
1
vote
0answers
26 views

I need to install a secure package from git globally

I need to add install a package using npm globally. The command to install it is npm i -g git+ssh://git@gitlab.companyname.io:1234/packagename/packagename.git To use this command I need to add ...
0
votes
0answers
157 views

Cannot open access to console, the root account is locked after upgrade linux mint kernel

According to pervious question: Halt in Linux mint logo after update and upgrade After changing the GRUB file to: linux /boot/.... ro quiet text When I suspend the OS, I am going to loging page: ...

1
2 3 4 5
19