Questions tagged [root]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
82 views

Using a different directory than /usr as standard

Is there any possibility to use a different directory than /usr as the standard directory to install things? I am asking, since I got an Endless OS system where /usr is read-only, thus not being able ...
0
votes
2answers
236 views

Run a bash script as root user which has a sudo command in the script

New to Linux - I'm using Debian 9. I want to run a script to install pwndbg, following the tutorial here. I'm using my root account to do so and want to install it to my root account's home directory....
2
votes
1answer
2k views

why i can get root after running system(“/bin/sh”) in c file?

I am currently logged in as seed and after running test.c, on my Ubuntu system, I get root permission. I am just wondering why system("/bin/sh") can make a such change? Firstly, I su root and compile ...
2
votes
2answers
2k views

Give read permission to non-root user for root owned file?

How can I allow reading specific root owned files by a non-root-user executed process? I'm running node.js under Linux/Ubuntu. I do not want to run my process with root authorization, but must have ...
0
votes
1answer
122 views

What's the best, secure way to share some .bashrc source between users and root?

How's the best, secure way to have /root/.bashrc and /home/user/.bashrc include a common .bash.shared file? In other words like this: /root/.bashrc --sources--> .bash.shared <--sources-- /...
0
votes
0answers
301 views

Use sudo to preserve ownership of created files (do not be owned by root but by user)

My question is simple but I couldn't find answers I need to use sudo npm install but I need the files installed to have my user's ownership, not root's. For example: sudo touch a will give me a file ...
0
votes
1answer
803 views

How to Run Root Aliases being a non-root user?

I am running Linux 4.4.0-116-generic Ubuntu + KDE ( x86_64 GNU/Linux ) I want to run an alias named ksession that kills a particular session. At the same time I want that only I can run this alias ...
1
vote
2answers
1k views

Checking for root user in sh and bash [duplicate]

I am attempting to write a script that automates the installation of ports/packages on new FreeBSD installs. To do this, the user who executes the script must be root. The system is "supposed" to be ...
1
vote
0answers
29 views

How can I list which users can login without key auth?

I have recently been charged with a large amount of Ubuntu servers that are exclusively accessed via private/public SSH authentication. There is no information regarding how these servers were ...
-4
votes
1answer
227 views

how to add Unallocatated disk to lvm2 root in fedora? [closed]

my lvm2 root in fedora already full, and i have 20.30GB unallocated disk, but i cant use Gparted to use it, so is there any method to move that unallocated disk??
2
votes
2answers
240 views

How to run jhbuild as root

I have installed jhbuild and set the PATH variable to $PATH:~/.local/bin. Now when I run jhbuild command I get error: You should not use jhbuild as root user and when I change the user to non-root and ...
0
votes
1answer
84 views

Copy a file via drag and drop to `/usr/local` [closed]

I have a file mathpass (without a file ending .*) in /home/patrick/Documents and want to copy it via drag and drop to /usr/local. If I do so, a message Access denied. Could not write to. appears. ...
0
votes
1answer
5k views

sudo su in bash error “Cannot execute help: No such file or directory”

I installed zsh and changed root shell /bin/bash to /usr/bin/zsh. Then I rebooted and typed sudo su. It said "Cannot execute help: No such file or directory". So, I typed sudo bash. However, when I ...
1
vote
0answers
177 views

root user renamed as qroot - unable to su or sudo

Mysteriously, on our public SSH server, root user is now showing up as qroot. All the files owned by root are now owned by qroot. id qroot shows qroot is UID 0 /etc/passwd file is owned by qroot /...
0
votes
2answers
117 views

Linux file permissions changes

I see my file permissions are changing automatically , to test I have kept the permssions chmod 750 to all alert file in /var/log/snort-* after some time when alert file updated the permission got ...
1
vote
3answers
129 views

What ways are there to severely and permanently restrict access to superuser privileges in Linux? [closed]

So I was wondering if it is possible to create a Linux system without any (or next to any) userspace processes running as superuser/root, and no (or next to no) ways for other processes to raise their ...
1
vote
2answers
110 views

Why do I need root-privileges to update my package manager's package list?

Why do I need root-privileges to update my package managers package list? Hi, I always wondered why I need root-privileges to update my package managers package list? I'm aware that the privileges ...
4
votes
1answer
182 views

Give a user privileges to switch process UID, GID

I'm writing an application that create worker processes run under other users credential. This program works under root. However, I want to run it under a less privileged account. Is there any way I ...
0
votes
1answer
725 views

Centos 7 with gnome GUI installed open as root

I am trying out Centos for the first time and I would like to add a context menu or something like it to be able to open a file or folder as admin wile in the GUI. With Ubuntu I was using gksudo but ...
1
vote
2answers
1k views

Can I sudoedit a file in a writable directory when using vimdiff?

When I want to vimdiff root files, I use the following alias, as per this suggestion. alias sudovimdiff='SUDO_EDITOR=vimdiff sudoedit' I can then use the following command. $ sudovimdiff /root/a /...
1
vote
3answers
632 views

SSH + Change password using root

I'm trying to connect to various servers to change the password of a specific user. I need to build a Script to do that thing, the complexity is that I have to use sudo and send the password in order ...
0
votes
1answer
68 views

timeout + root password + strace in one line

I'm trying to run a timeout command, with root password and strace all in one line, the original cmmand is sudo -S timeout 4 strace -p 2829 -f -e trace=write -s 9999 but that promps for entering the ...
0
votes
1answer
298 views

Rsync a folder as root on a rooted android device

I would like to get the content of the folder /data of my rooted android device. I tried with adb, but because /data/ is owned by root, I need to first copy the content of /data in the extcard, and ...
0
votes
1answer
2k views

How do I add myself to the sudoers file?

I attempted to add myself to the sudoers file a couple of days ago. I didn't want to have to login into root to do anything so I went into the file and inserted my name under root. Now I cannot use ...
-2
votes
1answer
147 views

What is root domain? [closed]

I'm taking a class in system administration and i find it hard to understand the concept behind Root domain. Can somebody explain in simple term the definition of Root Domain?
1
vote
0answers
192 views

Root login doesn't work with Synaptic and Apper

I have an odd problem. I have tried to use Synaptic so I can install a package. The system asks for the root password but won't accept it. I can start a terminal window and start su with the root ...
27
votes
5answers
10k views

How do file permissions work for the “root” user?

I have the following file: ---------- 1 Steve Steve 341 2017-12-21 01:51 myFile.txt I switched the user to root in the terminal, and I have noticed the following behaviors: I can read this file and ...
1
vote
1answer
113 views

Password Complexity Issue

Using RHEL6 Within the file /etc/pam.d/system-auth I have the following setting: difok=4 However I am able to successfully change root's password from abcd1 to bbcd1 It seems like I should not be ...
4
votes
1answer
2k views

change root password back to user password

Confession. I know little about linux, am an XP refugee, and try to do things I don't understand. I generally find it easier to find out how to do things, than to understand whether I should be doing ...
1
vote
0answers
597 views

What Can I Do To Setup a Root Login In Debian 9?

I have been using Debian steadily since Sarge. In each version I have been able to login as root, with GUI, to do my administrative needs. I NEVER use root for day to day use. I want to be able to ...
2
votes
1answer
93 views

Does Firefox automatic update in Linux abuse root privileges?

I have Xubuntu 16.04 and I was using Firefox as a regular user. I update Firefox with Synaptic each time. But with the release of Firefox 57, my old Firefox was automatically updated to this new ...
1
vote
1answer
64 views

Launching zypper command with root privilege

I want to initiate zypper command without the entry of sudo. For example, zypper update I attempt to change the permission bit of the zypper file located at /usr/bin folder. I assume that with allow ...
4
votes
3answers
1k views

Should I always set the root shell to /usr/bin/false?

To prevent abuse of the root account (on my macOS, single user) machine, should I always set the root shell to /usr/bin/false (or /sbin/nologin)? For example should I always: sudo /usr/bin/dscl . -...
1
vote
2answers
1k views

Mounting root partition on embedded file system

Linux embedded file system (Linux v. 2.6.26.5) running on raw NAND flash, it use Full Image's RootFS. U-boot 2009.03 bootloader. I need access shell after the Kernel is fully loaded, so that I can ...
0
votes
1answer
523 views

change user to sudo(root) after login to other server

i have 2 servers(Linux 2.6.32-696.el6.x86_64) suppose fe1 and fe2. i need to run a command (service tomcat start/stop) on fe2 from fe1 but it requires sudo as root. Command that i am using for sudo ...
0
votes
1answer
1k views

Problem resetting root password on an embedded device

Linux embedded file system run entirely on raw NAND flash, use Full Image's RootFS. Linux v. 2.6.26.5, U-boot 2009.03 bootloader. After the Kernel is fully loaded, when I try to submit command, the ...
0
votes
2answers
592 views

Deleted my root account from /etc/passwd file for testing in Centos7.3

I deleted my root account line from the file /etc/passwd and unable to boot into Rescue Mode and Emergency Mode. How can I recover the root user back.
1
vote
3answers
1k views

How to change autologin from root to non-root user?

I have installed Ubuntu server 16.04(Actually it's 3.4.113-sun8i ) with Openbox. and put this command startx inside /etc/rc.local to have graphics after boot. but the problem is that it automatically ...
0
votes
0answers
141 views

Apache2 - link DocumentRoot to subfolder on external drive but alter permissions

I have an exfat formatted usb drive mounted at /media/usb/drive1/ with root user via /etc/fstab. Now I would like to link my apache2 DocumentRoot which is located under /var/www/websites/ to a ...
2
votes
0answers
188 views

Why the “ passwd ” command give the root shell without password?

I have a Fedora server in which every time I execute passwd it automatically logins to root with no password necessary: Also, passwd is unable to change root password. Furthermore, root account is ...
-2
votes
1answer
284 views

Debian 9.2 Expert mode Login problem [closed]

I just install Debian 9.2 (expert mode) and I only allow root login I didn't add new user , so my problem was into getting in the system with root login and password which didn't work ( I'm sure 100% ...
1
vote
1answer
353 views

Linux open() syscall and folder permissions

I have a process P which is spawned by a process owned by root. After P is created setguid() and setuid() are called and it runs as user U. The process P attempts to create a file f on a folder F (in ...
0
votes
1answer
2k views

Target initialization failed. Failed to cache rpm database (1)

I am running an openSUSE leap 42.2 64 bit os on my laptop. I was trying to install some packages including nautilus-dropbox, so I added the packman repo. After zypper update, there were some packages ...
2
votes
0answers
78 views

modprobe in setuid contextmodprobe in setuid context

In CVE-2017-0358, author notes that The issue is that /sbin/modprobe is not designed to run in a setuid context. As the manpage of modprobe explicitly points out The MODPROBE_OPTIONS environment ...
1
vote
0answers
294 views

Accidentally moved root into home directory [closed]

I accidently moved root into my home/user folder without really doing anything...I don't quite know how this has happened!! How on earth can this happen with the permissions on root?? I've now been ...
1
vote
0answers
107 views

Trying to install Funtoo (inside VirtualBox only for now, for testing) with ZFS for boot/root - failed install and booting

Following guide https://www.funtoo.org/ZFS_Install_Guide everything works great, until in section "Create optional Datasets" at "Build directory": zfs create -o mountpoint=/var/tmp/portage -o ...
0
votes
1answer
203 views

I am signed as root but no root home directory exist, that probably prevents me creating a new user

I have a problem. When I enter a Ubuntu machine, I see this messages: Could not chdir to home directory /home/root: No such file or directory /usr/bin/xauth: error in locking authority file /home/...
2
votes
4answers
21k views

Why root Can't open file for writing?

[root@localhost ~]# vim /usr/lib64/sas12/smtpd.conf pwcheck_method: saslauthd mech_list: PLAIN LOGIN log_level:3 :wq An error occurs. "/usr/lib64/sas12/smtpd.conf" E212: Can't open file for ...
1
vote
4answers
3k views

Cannot reset root password via grub

I am using Redhat Linux 5. I forgot the root password i set while installing linux OS. After rebooting right after the installation, entering root password is needed of course. So the following is ...
-1
votes
2answers
60 views

Is this account of root privileges in UNIX correct?

Some university lecture notes claim that In Unix systems, it is written into the operating system that some functionalities can only be accessed by the root user: modifying passwords, accessing to ...