Questions tagged [root]

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

Filter by
Sorted by
Tagged with
1 vote
2 answers
5k views

How to startX as non-root user inside the rc.local?

I am trying to start startx as non-root user in my Ubuntu-server 16.04(Linux nanopim1 3.4.113-sun8i #16 SMP PREEMPT Tue Jun 13 14:15:57 CEST 2017 armv7l armv7l armv7l GNU/Linux) with openbox installed ...
user3486308's user avatar
1 vote
1 answer
3k views

How to delete a locked folder on Mac?

I have been trying to remove a locked folder from my Mac. I am logged in as admin. When I try to delete it from Finder, it says The operation can’t be completed because the item “X” is locked. I ...
uiwarrior's user avatar
0 votes
1 answer
2k views

file permissions are not changing even with root access - kali linux

I've got a strange problem with my dual boot system (windows and kali linux) I login to the root account but when I try to change the permissions of any file , I just can't ! it gives me no error or ...
R1100's user avatar
  • 1
2 votes
2 answers
5k views

How to create a sudo user if there is no wheel group available in rhel?

I mean, if there's a user with username:name how to make him a sudo user without adding him to wheel group(intention is if wheel group is deleted)?
Vamsee Bond's user avatar
0 votes
1 answer
223 views

How to allow both root and restricted users in SSH?

Is it possible (and if so, how) to do the following with openssh-server: to be able to authenticate root user with a key and no password to be able to authenticate a non-root user with a key and no ...
Ulrik's user avatar
  • 251
1 vote
1 answer
797 views

Cron to check (and fix) all root file permissions?

So I recently went through the wonderful adventure of fixing the /usr/bin/sudo file after it's permissions have been changed. This was on a system where it had been intentionally reconfigured to make ...
Nicholas Summers's user avatar
3 votes
1 answer
1k views

Not able to write to directory despite correct permission and group

Have been strugling with a wordpress-virus attacking and Writing files in one of my sites. One strange thing i noticed is that even with the root user i am not able to write to the directory. The ...
hrdy's user avatar
  • 75
8 votes
5 answers
7k views

Should I use sudo in a script or sudo an entire script?

I run a small group of macOS machines for students (say 20) and they all need to be setup with things like homebrew and other packages and applications. I'm writing a bash script to automatically ...
James C.'s user avatar
0 votes
1 answer
1k views

unset HISTFILE cannot disable root's .bash_history

In order to make the behavior system wide, I put unset HISTFILE in /etc/profile. Normal users no longer have .bash_history but root still does. Anyone can tell me what I am doing wrong here? Or what ...
Aura's user avatar
  • 101
0 votes
1 answer
941 views

Why is root sometimes not in the sudoers file, by default or convention?

On many varieties of Linux and Unix, the root user is not allowed to use sudo. Why is this? Is there any security concern with the root ALL=(ALL) ALL present in some other varieties' default ...
Sparr's user avatar
  • 1,159
0 votes
1 answer
4k views

Invalid Argument when mounting /system as (RW)

I have Kingroot (for root access) and Terminal emulator installed on my device. I am using the following command to mount the System directory on terminal: mount -o rw,remount -t ext4 /system and ...
Seynal's user avatar
  • 211
0 votes
1 answer
478 views

How to run a program (steam) installed by another user?

I'm really new to Linux. I'm currently running an Ubuntu version and I would like to run a program that was installed by root as a non root user. Or how do I install a program for all users? Thank ...
Hani-7amad's user avatar
2 votes
3 answers
1k views

Running docker container as non-root user?

Is there a way for users without root access to run a docker container? To be clear, I am not asking if I can create a user in the container that runs as non-root. Rather, I need to know if and how a ...
memorableusername's user avatar
2 votes
1 answer
3k views

When I use root to open Sublime Text 3, all packages are missing

With Sublime Text 3 running under Debian Linux, I have installed several packages as a normal user, but whenever edit any file I have to write the administrator password. So I used su and subl to ...
Nasr's user avatar
  • 43
-1 votes
1 answer
820 views

How to change the root directory using a Script?

I wanted to change the root directory for a user after running a script, for example : someone uses source on a script when he uses cd / instead of going to the root directory he goes to /...
mohamed emad's user avatar
8 votes
1 answer
22k views

Xubuntu 16.04 ttyname failed Inappropriate ioctl for device

I have a need to launch Xubuntu as a root user for a stand-alone demo system. Whether I use the auto-login feature from lightdm, or when logging in via "Other" > "root" when prompted, I always get ...
boyashley's user avatar
0 votes
1 answer
6k views

Permission denied when trying to view var/root in osx10.9.5 with root user enabled

how do I access the root directory in osx 10.9.5 (Mavricks). I get the red no access logo and Permission denied under terminal despite enabling root user and being in an administrator account. Tried ...
Maurice's user avatar
0 votes
1 answer
92 views

root last chance to save server (sudoers file broken)

I know it's quite dumb to edit the /etc/sudoers file with nano and not visudo, but I did it and got an Syntax error :( . I have the root password and tried to login, but the root user is set to bin/...
Kasti96's user avatar
-1 votes
1 answer
56 views

Does changing root permissions matter?

I see many times when dealing with password or other confidential files, tutorials and the like recommend changing the file permissions to 400. This seems odd because root, I have learned, is like the ...
electricjelly's user avatar
2 votes
1 answer
2k views

How do I set up a bootable incremental ZFS-on-root backup on a seperate drive?

I installed antergos Linux with ZFS-on-root. The system is up and running and I’m glad because that alone is a success for me. Now apparently ZFS is mainly for NAS, RAID, Server configs etc. (and I ...
Marian's user avatar
  • 123
11 votes
2 answers
8k views

How to open a file in ranger as root?

How do I open a file in the file-manager "ranger" with superuser rights? While ":open_with vim" opens the file as none root with vim, I am looking for something like ":open_with sudo vim", but that ...
PatrickSteiner's user avatar
1 vote
0 answers
2k views

install build-essential without apt and without internet in linux 3.4.7

I want to install build-essential on linux server, where apt command is not found. Im not able to connect internet over the server. I found some solutions, but all of them included apt-get, which I ...
Haniku's user avatar
  • 141
0 votes
1 answer
1k views

sudo command and root password on macOS

I'l try to make sudo dd if=disk.img of=/dev/disk2. Root user is enabled with password. I logged in macOS as a single user. When I try to set this command, terminal ask me Password, but root password ...
Denis Leonov's user avatar
0 votes
1 answer
2k views

How to transfer data from root user to other user (Kali linux)

I am running Kali Rolling. I had a very bad habit of using the root user for everything (downloading packages, downloading files, transferring photos, and customizing Kali (the clock and icons and ...
Harry Dogerman's user avatar
0 votes
1 answer
64 views

Where did it go? sudo su then mv a.zip ~/desktop

I elevated to root user with sudo su then I made the mistake of trying to move a file to my logged in profile's desktop with mv a.zip ~/desktop. As a result, I am unable to locate the a.zip file. I ...
ThisClark's user avatar
  • 251
3 votes
2 answers
32k views

Difference between sudo su - root vs sudo su -

I know how is working 'sudo su - ' or sudo. But not sure why after sudo wave I just can't login on root with 'sudo su -' but with 'sudo su - root' im able to. Where is the difference? btw. Ldap is ...
Null0007's user avatar
0 votes
1 answer
470 views

changed root UID in ubuntu

I was tinkering with the /etc/passwd file when accidentaly changed the root UID and GID. When I enter into the recovery mode, I still have no superuser powers, as any user exists on the passwd file ...
L00P3R's user avatar
  • 3
0 votes
1 answer
88 views

Daemon and gui app accessing same data files

I have a daemon that needs access to (read/write) some files that a gui app also has access to (read/write). The daemon runs as root but the gui does not. Each time the daemon accesses the files, ...
Greenland Ron's user avatar
1 vote
1 answer
154 views

Dubious user on MBP 10.12.5

I execute "dscl . list /Users | grep -v '_'" and lists root permission users, like: daemon, Guest, hiddenuser, nobody, "me", root. I don't know who is hiddenuser and how to remove it. could somebody ...
Muri's user avatar
  • 29
-3 votes
2 answers
860 views

Install XAMPP in Kali normal user

I want to install XAMPP, but it says to install it as a superuser and when I login to root I can't find the file in my home directory. How do I solve this problem?
Nilesh 's user avatar
0 votes
2 answers
836 views

How do I change/reset permissions ssh debian

Recently I executed command chmod -R 666 /, instead of putting directory for the command, after I realised what I did I did CTRL + Z asap, but some necessary permissions from root user were negated, ...
Wor9cs's user avatar
  • 11
0 votes
2 answers
886 views

Run Linux desktop only as root

I want to run Linux desktop (xfce, lxde, ...) only as root, while denying accessing to other users. Only the root (admin) has the privilege to run a desktop environment or a GUI application. EDIT ...
Baron Leonardo's user avatar
-2 votes
2 answers
1k views

Debian(jessie) : Permission Denied

I have a NTFS partition and I installed Debian(Jessie) I added myself to the sudoer file but I can't perform any operation in NTFS partition. Please suggest me something I installed this debian third ...
AjaiVeer Singh Sandhu's user avatar
0 votes
1 answer
374 views

Bypass activate storage for android phone?

I have an android phone with broking screen that I'd like to root to eventually use it for a different purpose (as a computer). The thing is that when I connect it to my computer it is detected, but ...
Ernest Dujo's user avatar
0 votes
2 answers
6k views

Enable root login via ssh not working?

I want to enable root login via ssh. So I add the ligne 'PermitRootLogin yes' to ssh config file '/etc/ssh/sshd_config' : Port 22 Protocol 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/...
Ridae HAMDANI's user avatar
0 votes
1 answer
2k views

PuTTY - Created new user but can't login with it

I can connect to the server with root user via ssh, but I can't login with the new user I made named server. What I can do though is login to root, and then do the su server command. What is the ...
James Mitchell's user avatar
6 votes
0 answers
925 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 ...
user2284570's user avatar
  • 1,843
1 vote
1 answer
246 views

What is the file called "Desktop" in the root directory on my Mac?

I was sorting through the files on my computer when I noticed a file I didn't put there, which is very large. It seems to have no associated file type (no suffix), and certainly isn't text. It's 8Gb ...
user avatar
1 vote
1 answer
8k views

launch transmission-daemon as root

have trouble with transmission daemon. I need to write files to external hdd, but always get Error: Permission denied Some guys write something about auto-mounting bug, but I can't mount it each time ...
degr's user avatar
  • 73
1 vote
1 answer
2k views

Thunderbird Quota Root 100%

If I remove the emails from the server would it effect my emails on Thunderbird? Is there a way were Thunderbird just removes messages from server every 1-3 days? (like outlook does)
Akmal Soliev's user avatar
0 votes
1 answer
978 views

How to use Filezilla SFTP with root disabled?

CentOS 7, I have root disabled for obvious reasons, and because of this I cannot use Filezilla SFTP as folders are denied to other users. I added a user to the 'wheel' group successfully, but ...
SidedTech's user avatar
  • 190
0 votes
0 answers
281 views

CentOS 7.3 repquota: Cannot stat() mounted device /dev/root: No such file or directory

I get an email that says this every day or so. Every search has come up with a solution that has not worked for me (apparently did work for CentOS 6.x) Running cPanel on Linode CENTOS 7.3 x86_64 kvm ...
SidedTech's user avatar
  • 190
3 votes
1 answer
3k views

macOS Sierra 10.12.2 root cannot write in /usr/sbin

Can anyone shed some light why? # whoami root # ls -ld /usr/sbin drwxr-xr-x 246 root wheel 8364 Jan 3 14:36 /usr/sbin # pwd / # touch test-file # ls -ltr test-file -rw-r--r-- 1 root wheel 0 ...
Sobra's user avatar
  • 33
0 votes
0 answers
1k views

users are getting sudo to root though it is blocked

I have below entries in sudoers file but users are getting access to root, need to block the same. Cmnd_Alias SUROOT=/bin/su -,/bin/su - root, /bin/su root, /usr/bin/su -, /usr/bin/su - root, /...
KumarJohn's user avatar
  • 417
3 votes
1 answer
2k views

Cannot delete a dir as `root`, even after a `chattr -i`

I am trying to delete a directory, foo, and am totally out of things to try. Note: I know, I'm not supposed to delete LxD containers with rm, but I'd messed up this directory's contents earlier, and ...
Harry's user avatar
  • 851
1 vote
1 answer
107 views

Trying to understand the security of a default Mint installation

I some areas, I'm gradually getting used to linux, but in others (like this one) I'm still 99% noob. As an XP refugee, I've used Mint and am now on 18 Sarah. I am not concerned about protecting the ...
Neil_UK's user avatar
  • 176
0 votes
1 answer
99 views

64bit windows guest on a 64bit linux host with root

I've installed virtualbox on Ubuntu using the regular package. When I run virtualbox as a normal user, I can create VMs it lets me create VMs with both 32 and 64 bit guest OSes. But when I run ...
itai's user avatar
  • 101
1 vote
0 answers
1k views

I can't change permissions on my Applications folder El Capitan 10.11.6

My applications folder won't allow Quicken to update so I tried to add my user name to the applications folder and give it read/write. I don't see staff permissions either and a "fetching" that never ...
jefferis's user avatar
2 votes
1 answer
6k views

What is the best way to backup an SSH key in case my hard drive fails, etc?

I have disabled root user login for my CentOS server running cPanel. This is frustrating, as I then cannot login via SFTP and get to my root files on my server to check error logs (which I frequently ...
SidedTech's user avatar
  • 190
3 votes
1 answer
5k views

SSH keys deleted from home folder after reboot

First time poster and massive unix/linux novice here. I have a Western Digital My Cloud NAS, which runs (I believe) some version of Debian. I've got a remote backup account with Rsync.net, and want ...
abza's user avatar
  • 161

1 2 3
4
5
13