Questions tagged [root]

The name of the main administrative user commonly used in *nix based systems.

Filter by
Sorted by
Tagged with
3 votes
2 answers
20k views

AWS : How to switch as "root" user?

I have new created EC2 instance in aws, and able to login as EC2-user using private key but want to login as root to install packages. Not able to switch as root tried sudo - but it asking for ...
0 votes
0 answers
164 views

Is /etc/aliases the only file defining where root mails are redirected?

My school has a server with the file /etc/aliases. This file notably contains the line root:someuser (it is the only line with the key root). Does it mean that every mail sent to [email protected] is ...
11 votes
4 answers
13k views

I just ran rm /* accidentally, any fix?

I fell so stupid... I just ran rm /* accidentally, but I meant rm ./* on a cloud server with root access. Now, no one command works. ls, ssh, sftp... none. Is there a way to fix that? (Note: params ...
0 votes
2 answers
2k views

chmod/chown/mkdir: Operation not permitted as root

I get Operation not permitted for root user on one server but not on the other "identical" server. Running on Amazon Linux 1. Server 1: [root@preprod-1 ]# chown root:root /s3mnt/outliers/ ...
6 votes
3 answers
38k views

Enable simple password for root user on CentOS

I have a machine with CentOS and I want to enable a simple password for the root user. Something like 7 characters with 2 numbers or so... But I'm getting this error: BAD PASSWORD: it is based on a (...
18 votes
7 answers
39k views

apt-get update not working: Signing/ Verification errors

When I run apt-get update I get Ign:1 http://dl.google.com/linux/musicmanager/deb stable InRelease Ign:2 http://archive-4.kali.org/kali kali-rolling InRelease Hit:3 http://archive-4....
2 votes
2 answers
3k views

How can I automatically pass the password to 'su'?

I am working on an exploit for a security course. The object is to obtain a root shell in a linux virtual machine. So far, I can write to /etc/passwd and change root's password to an arbitrary string. ...
0 votes
0 answers
2k views

sudo commands takes long time

Running any command with sudo takes long time. Steps: Login to the server with regular user ssh [email protected] $ sudo su here it takes some minutes Why does it take so long? Not sure if it ...
2 votes
2 answers
1k views

How do I change the color ls in the console for files if group owner is `root`?

I am inside a mounted folder: /mnt/hgfs because of this all the files' owner is root. In this folder when I do ls color for all the files show up as green and for all the folders, there is green ...
1 vote
1 answer
185 views

Not able to run “sudo” after rebooting my Odroid-C2 system running Ubuntu 20?

I was happily working on my Ubuntu when suddenly — after a reboot — I realised I cannot longer invoke sudo nor root. Basically, this is what I get no matter what: lui@odroid:~$ su root su: ...
0 votes
1 answer
869 views

Logging in as root for the first time to Oracle Solaris

ALL, I installed latest Oracle Solaris x86 inside VirtualBox. Now, I'd like to install Oracle DB Server there. According to the install documentations from Oracle the first step is to become root. ...
7 votes
8 answers
32k views

How can I find out which user logged in as root?

We have a couple of servers which are managed by a large group of admins. They usually log in as service users (say hudson) and then switch to root to make some small fix. This means we often can't ...
0 votes
1 answer
804 views

How to manage file versions with git if files are owned by root and non-root users?

I have root owned files and other files in a directory and I would like to use git for version control of these files. Is it possible to use same git repo for files owned by root and non-root users or ...
32 votes
4 answers
84k views

Can I make a script always execute as root?

How to make a script execute as root, no matter who executes it? I read about setuid but I'm not sure how to do this. I'm using Linux, Ubuntu 12.04 LTS.
4 votes
0 answers
3k views

Running linux from Termux (PRoot) vs running Linux from image (chroot, apps like Linux Deploy or Linux Installer)

I have a phone that has DP output over USB-C, hence it can be used with secondary display almost as a fully fledged "laptop", but the limiting factor is android system that is not very ...
90 votes
2 answers
19k views

Why is the most powerful user on a Unix/Linux system called “root?”

Somewhat inspired by this other question on the use of the term “Super User”, why the heck is the most powerful user on a Unix/Linux system called root? Why not admin, sysop, base, king or something ...
368 votes
10 answers
379k views

chown is not changing symbolic link

I'm trying to change the user/group of a symbolic link with the command: $ chown -h myuser:mygroup mysymbolic/ But it's not changing. I'm logged in as root. The current user/group is set to root:...
51 votes
7 answers
143k views

Where's .bashrc for root?

I know it's not best practice, but on my dev system I login as root. What's the equivalent of the .bashrc file so I can alias some functions? I've found the /etc/bash.bashrc & /etc/bash.bashrc....
0 votes
0 answers
132 views

problems with usernames in docker

Good afternoon, I am currently configuring the user name for my containers in the daemon.json file and following the tutorials that I post below: I am using the following documentation: https://docs....
0 votes
2 answers
6k views

What’s the difference between “su” and “su -“

In a UNIX machine, what is the difference between su and su -? Is there even a difference? I know that su - is the standard.
2 votes
2 answers
1k views

Root user cannot read /root/

I added a user called 'kma' to root group. Then I changed permission of /root/ to 770. Which should give the user read, write and execute access since I added him to the root group. But it still gives ...
1 vote
0 answers
34 views

/usr and /etc changed ownership to user "5640" and group "13023". What happened?

after just installing samba on my Ubuntu server, I got warnings (from the samba installer) about strange ownership and permissions set for my /etc and /usr folders. I checked and indeed /etc and /usr ...
-2 votes
1 answer
2k views

Kali GNU/LInux Rolling

I installed Kali on my PC and rebooted my PC. I then created the password so now it wants a login and a password when I type in root and the password it says login incorrect. I can't go back to normal ...
0 votes
2 answers
835 views

Installing on a remote machine without being root

I mostly work on a linux remote machine for which I have an account but I am not the root user. I have never really understood what that means for my ability to install things. I know that I can pip ...
-2 votes
2 answers
7k views

how to run sudo command in kali 2020.1

I know that kali linux 2020.1 does not support root user. but I have following case when I installed it on my pc (i368) it has black screen login, I tried starting lightdm service but failed. now I ...
0 votes
1 answer
233 views

Root console without a password with GRUB dual boot on Ubuntu 18.04.4

I just discovered that entering a recovery console (in Ubuntu 18.04.4 installed with a dual-boot alongside Windows) allows entering the root console without entering any password. It seems to be a ...
0 votes
2 answers
247 views

Is it safe to save root login/password for Webmin in browser?

Is it safe to save root login/password for Webmin in browser? I mean the autosave login feature in most browsers. I'm using Chrome on my own PC.
0 votes
1 answer
305 views

Unable to connect to root profile or open root console in Kali Linu

I am running Kali Linux on VirtualBox. When I try to login into the root account it just does not connect. the same if I enter a non-root account and try sudo commands. I entered the grub bootloader ...
0 votes
0 answers
1k views

Whenever I type sudo command on my Kali Linux 2020.1 it doesn't allow me to write further

Whenever I type sudo command on my Kali Linux 2020.1 it doesn't allow me to write further. It just shows this message and it stops reading my commands We trust you have received the usual lecture ...
6 votes
0 answers
921 views

Does a process with CAP_SETUID and CAP_SETGID can always gain full root privileges?

If I have an executable file with CAP_SETUID and CAP_SETGID set inside xattrs file’s attributes. Will I get full root privileges if such executable call setuid();setreuid();setresuid();setfsuid() with ...
28 votes
3 answers
12k views

sudo command trying to search for hostname

Recently, I have changed the sudoers file and the hostname through /etc/hostname. After changing this files, my sudo command is taking a lot of time. Also, it says sudo unable to resolve host kaagini(...
2 votes
2 answers
3k views

Run command automatically as root after login

I'm using evrouter to simulate keypresses from my mouses extra buttons. It works great but I need to run the command with sudo to make it work so I can't just use my DE to handle autostart. I ...
2 votes
2 answers
2k views

UID is root but whoami says nobody

I'm participating in a capture-the-flag contest where I must implement some form of privilege escalation to read the flag.txt file. I've noticed that when I run whoami I get the following result: ...
1 vote
0 answers
963 views

Root MySQL Access denied even after resetting root password

I know there are a ton of threads on similar issues where people can't connect using root and need to reset their password to regain access, but in my case resetting the password is not a problem. I ...
0 votes
0 answers
53 views

Mechanisms to be root after ssh login (w/o using sudo)

Our servers are set-up in a way, that after ssh'ing to them using our userid ssh my_user@server(I am immediately greeted with [root@server ~]# The command id confirms that, indeed, I am root. However,...
0 votes
1 answer
2k views

sudo apt-get update && upgrade runs on root, but not with sudo as normal user

Not much else detail to add. Latest release of Parrot OS, I'm curious why I could only get my update && upgrade to run as the root user, when AFAIK using sudo as my normal privilege user ...
0 votes
1 answer
913 views

Custom name of root user

Obviously, the root user's username is root. Is there a way to change it's username to something else while keeping it's root powers? Example: Change it to webadmin on a http server.
3 votes
1 answer
11k views

Grant root permissions to application, so won't prompt again

In startos (with the ypkg packages), their app store somehow can download and install packages, without the prompt of any root or user password, to the root protected folders of /usr ...etc. However ...
2 votes
1 answer
347 views

macOS Catalina cannot remove file from trash

I have already tried everything which comes to my mind I cannot remove file from trash OPTION key doesn't work same as sudo rm -rf - says Operation not permitted same using root user.
2 votes
2 answers
3k views

Why is allowing root login via FTP( on cPanel) a considerable security risk?

I find it very convenient to administer my whole server by logging in as root. However, CSF tells me that it is a "considerable risk" to allow login to FTP via root, and other websites I googled ...
0 votes
0 answers
50 views

how to start a file necesary glibc 2.17 without uid0?

I need a solution or a improvization how to start a file with this error " : /lib64/libc.so.6: version `GLIBC_2.17' not found (required by ........ ", i need a resolve how to start or how to resolve ...
0 votes
1 answer
1k views

Deleting annoying system sounds in Catalina

I loathe the sounds made when dropping a file into a folder. So for years I've deleted: System /Library /Components /CoreAudio.component (Show Package Contents) /SharedSupport /SystemSounds /system ...
0 votes
1 answer
21k views

Volume Shadow Copy Service warning: VSS was denied access to the root of volume (Win 7 Home Premium)

I am mystified by the following warning in the Event Viewer. It is very frequent and always the same. Can anyone explain this to me? Is it a cause for concern? Might it have anything to do with my ...
2 votes
1 answer
3k views

Become root on ssh client

I'm trying install an agent named cloudamize with a bash script to our linux machines. There is two commands for this process: export CLOUDAMIZE_CUSTOMER_KEY=<my_customer_key> bash < <(...
3 votes
4 answers
5k views

Can't login as root after changing permissions of /usr/bin

I changed the folder permissions of /usr/bin to 777. Now when I login to root user it shows "incorrect password". Now I'm not able to do anything on this PC. How can I revert the permissions of /usr/...
0 votes
1 answer
1k views

Root (0) user running IMRemoteURL

My system is set to sleep after 3hrs. I was away from my machine for an hour, came back and it was sleeping and had to log back in. I looked at logs to try and figure out why did my machine go to ...
7 votes
5 answers
3k views

How to hide a code from myself until a specified time?

Essentially, what I need is some way to generate and store a random string (20 characters long, say) for some period of time, such that there is no way for me to recover the string until the end of ...
0 votes
2 answers
393 views

Locked out of Debian embedded device after mistake in fstab

I am working with an embedded Linux device with Debian 9 installed. The device has an internal storage and the option to extend the storage with a sd card. I want to use the extra sd card for ...
2 votes
0 answers
6k views

System Permissions macOS 10.15 Catalina

As Apple locked user access further with 10.15 Catalina, after 20 years using Apple systems I held off on updating as my work requires access beyond what Privacy settings allows in System Preferences. ...
0 votes
0 answers
128 views

Disable root login on Linux?

I setup a Linux server. I would like to maximize security on the server to reduce any security risks. I would like to disable login for the root account, and just add the regular user to the sudo/...

1 2
3
4 5
13