Questions tagged [root]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

allow execution of bash script from php-fpm

server: Debian 11, nginx, php8.1-fpm i want to execute /var/www/script1.sh from php script on my server $s1= shell_exec('/usr/bin/pkill -f '.$cmd.' '); echo "<pre>$s1</pre>"; $...
user avatar
0 votes
0 answers
13 views

Recall original user from a pts or tty session

I have recently discover new weird behaviour on my linux vm. So i am just trying to grab the original user id or username from pts or tty. On my ubuntu 20 slash 21 server LTS edition , if i go sudo ...
user avatar
-4 votes
0 answers
33 views

Root folders showing in my home directory

I was training on Hack The Box and I accidentally did something wrong, but don't know what. My home folder now is full with other random folder. Rrunning ls -la command on my home folder: drwxrwx--x ...
user avatar
-1 votes
1 answer
38 views

passwd source code

I am trying to look at the source code of the passwd and gpasswd programs. These tools check the effective UID set to zero to complete execution successfully. But I am a noob to C and couldn't find ...
user avatar
  • 111
0 votes
2 answers
51 views

Why Linux allow sudo -i or sudo su

I have a question recently discover that apparently you can 'bypass' the needs to know root user password and just switch straight in as root user. So if you are the admin, you can have some users ...
user avatar
0 votes
1 answer
45 views

Using "chmod -R 666 filename" does not give all files writing permissions

I have been running as root in a Linux Virtual Machine to change permissions to a whole list of files within a directory. When I check the permissions after using sudo chmod 666 -R /home/candidate/...
user avatar
-1 votes
0 answers
48 views

chown, can owner of root be changed?

can i use chown to change owner of root. if so how? im new to shell and all this so plzz try to work with me on this .im trying to root a insignia fire tv.strong textTY for the help
user avatar
-2 votes
0 answers
22 views

How to gain root access on a system with Android TV 9.0 (Kernel 4.9.118) [closed]

I was wondering how to gain root access on a system with Android TV 9.0, Kernel 4.9.118+. sudo and su don't work in this linux version.
user avatar
-1 votes
0 answers
30 views

Root user logging

I have a question Why it’s not ideal to record root user behaviour or why Linux does not log any activity when you log in as root user like su - Like my question why sudo is log but not when you log ...
user avatar
0 votes
1 answer
25 views

Do group permissions matter for files owned by the root group?

I've stumbled upon a script which included the following two commands: chown -R some-user:0 /some/dir chmod -R g+w /some/dir Specifically, this is from the Dockerfile of the nginx-unprivileged Docker ...
user avatar
  • 195
0 votes
1 answer
37 views

Login to Linux knowing only the root password

I tried top disable the password of my Debian user and must have done something stupid since now I can't login at all anymore with that user. I do still have the root/sudo password. I tried to type in ...
user avatar
0 votes
0 answers
39 views

Can't login to SSH client after hostname change [closed]

I edited the hostname, it's permanent now, and then I went to hosts file to change line 127.0.0.1 to the correct hostname so it reads 127.0.0.1 NEW HOSTNAME and then I rebooted, and now I cannot log ...
user avatar
  • 117
-1 votes
1 answer
38 views

Run Shell Script as SystemD Service in Linux

I tried to run these command $ nano /usr/bin/script.sh $ chmod +x /usr/bin/script.sh $ cat /lib/systemd/system/shellscript.service [Unit] Description=My Shell Script [Service] ExecStart=/usr/bin/...
user avatar
  • 1
0 votes
0 answers
20 views

Testing an application under Eclipse with sudo elevation

I am developing a C++ application that requires root privilege. I am working under Eclipse and I would like to be able to launch/debug from it. I know I could start Eclipse as a root, but I am looking ...
user avatar
0 votes
0 answers
36 views

Start Graphical Interface

I recently subscribed for a cloud company and launched application server under debian 10.5 I wanna go from command-line to graphical interface, but I can´t I typed startx , but I got. I tried using ...
user avatar
1 vote
1 answer
35 views

Does cron run graphical applications as root?

I've automated a daily restart for Firefox (edited by running crontab -e) and forgot to take into account whether the program would launch with administrator privileges. killall -s SIGTERM firefox; ...
user avatar
0 votes
1 answer
65 views

Find all binaries that require root privilege in a freshly installed Ubuntu 20.04 LTE

I am currently looking for the simplest way to find all binary files in /usr/bin and /usr/sbin directories that require root privilege to run, which means I should run them using sudo or by being root ...
user avatar
  • 111
0 votes
0 answers
18 views

Parrot OS sending all applications to / instead of /home

I am new to Linux. I partitioned my drive to have a 30gb root and a 220 gb /home. I don't want to fill up my root, obviously, but I don't know how to make my applications go to /home directories. I ...
user avatar
-3 votes
1 answer
80 views

Why do package managers require root priveleges?

The default package manager for mainstream Linux distros (deb/apt, yum/dnf, pacman, etc) do global-installation by default and require root. I am curious about in the rationale for this design choice. ...
user avatar
0 votes
0 answers
41 views

Error "File System Loop Detected" Permission Denied to Decrypt folder with ecryptfs-recover-private

I'm trying to open encrypted files from a full encrypted drive that is unlocked and mounted. I have tried various commands and have been unsuccessful. How can we fix the find "file system loop ...
user avatar
  • 13
1 vote
2 answers
38 views

Running an script AS USER after resuming from suspend

Every time my computer resumes from a suspend (which I do quite often) the audio gets a bit messed up. I use the EasyEffects EQ on my computer and it runs on startup to apply the EQ. When my computer ...
user avatar
0 votes
1 answer
334 views

Change default login user for Linux from root

I've been working with Linux for awhile and was wondering how I could go about changing the default login user. The whole time I've used Ubuntu, I've been logging in as the root node, as bad as that ...
user avatar
  • 11
0 votes
2 answers
32 views

How to make a directory only accessible by local user not remote root user?

I have a CentOS 7.9 machine, logging in as my normal user account and access a directory that has my forms and SSN in it. Other users in the network who has the root account can ssh to my box and ...
user avatar
  • 1
0 votes
1 answer
54 views

problem with installing a repository on remote server with CentOS 7 without root permission

I am trying to install Chipyard Toolchain on a remote system with cshrc. I am connecting to it via ssh. All the required dependencies were already installed on the system. I checked them with rpm -q ...
user avatar
0 votes
0 answers
13 views

Need Help with Gene Sequencer Install

ok so i might be overlooking something simple but... i'm installing iontorrent from source via github using docker on a fresh ubuntu 18.04 bionic beaver install(w/xubuntu desktop as per request) ...
user avatar
0 votes
0 answers
51 views

How to set cap_sys_admin permission to user in rhel8.5

How to set cap_sys_admin permission to user in RHEL 8 I don't see any capabilities or capabilities.conf file in /etc/security/ I can two libcap packages are installed libcap-2.26-5* libcap-ng-0.7
user avatar
-2 votes
2 answers
437 views

Why does Arch Linux install applications to root, instead of home folder like other Distros? Is this a security risk?

I have recently come to understand that Arch Linux install all applications in /root directory only, while other Distro provide an option to the user to install in /home directory ? Why is this the ...
user avatar
  • 17
0 votes
0 answers
56 views

debian root commands not working on desktop environment

I have a debian box, and after some version update or so, root commands are not recognized while being in the desktop environment; for instance dhclient or reboot. At first, I took it as an additional ...
user avatar
0 votes
0 answers
101 views

undo usermod for root?

At some point where I wanted to do sudo usermod -v 1000-1000 USER sudo usermod -w 1000-1000 USER I accidentally applied both these commands to root. According to the documentation I can undo these ...
user avatar
0 votes
1 answer
102 views

"Host key verification failed", SSH only working when signed in as root user

I am trying to ssh/scp from one machine on my network to another. The problem is that when I execute an ssh/scp command (ssh user@ip_machine_2) it is only "working" when I am logged in to ...
user avatar
  • 1
22 votes
1 answer
3k views

root cannot write to file that is owned by regular user

I create a file as regular user testuser: $ cat > /tmp/zz the file is owned by that user (as expected): $ ls -lA /tmp/zz -rw------- 1 testuser testuser 0 Feb 20 15:32 zz Now when I try to ...
user avatar
1 vote
0 answers
51 views

Unable to re-enable ssh root login in CentOS

I need to be able to copy some files using scp as root, and for this I need to enable ssh login as root; so I edited the file /etc/ssh/sshd_config by changing PermitRootLogin no to PermitRootLogin yes,...
user avatar
  • 251
1 vote
1 answer
60 views

when did I give the application a root permissions?

I've installed azure storage explorer with "sudo snap install". I don't remember giving it root permissions during the installation. Now it's creating directories owned by root for ...
user avatar
1 vote
3 answers
102 views

Script to CHOWN all the files in a dir but skip a specific dir inside

so i have this startup script i run after re OSing my server: Installs drivers Mounts Zpool Adds users and smb users and SMB shares. The only things that survives the new OS is my Zpool of which ...
user avatar
0 votes
0 answers
92 views

how does switch_root command make /sbin/init in the new filesystem pid 1 process?

when kernel boots into initramfs, an init process is started and do some preparations for the real rootfs. when the real rootfs is ready, the init process in the initramfs should hand over to another ...
user avatar
1 vote
1 answer
41 views

Why does SoftWar not ask me for the root password when installing the program

I am using Arch Linux I have noticed that the software installs programs such as minetest or red alert without a root password But why does this happen? Interesting because when I uninstall it it asks ...
user avatar
0 votes
2 answers
121 views

System Integrity Protection for Linux

I'm looking for a way to protect certain folders from any manipulation and write attempts (also from the root user as with macOS). I've already looked for options, but I haven't found anything useful. ...
user avatar
0 votes
2 answers
315 views

How to access env variables defined in root from another user? [duplicate]

I have a env variable test defined in the user root. This can i access inside user root using command: echo $test Now i switch to another user myuser using su - myuser . Now How to access the test ...
user avatar
  • 103
0 votes
0 answers
26 views

Why home directory has only one hard link? [duplicate]

I have 9 directories in my home directory but when I am using ls -la command the total hard links showing is 1 (for the home directory). Although there are total 9 directories inside my home directory ...
user avatar
  • 121
0 votes
1 answer
55 views

Would you consider this a security concern? Trying to script cifs

I’m trying to script mounting a cifs share. Below is my script, which i run on a proxmox v7 debian 11 VM, cli only, no gui. I connect via putty and this script is sitting in /srv/share. I also have ...
user avatar
0 votes
1 answer
4k views

Cannot open access to console, the root account is locked

I have a Debian 11 that i was using LVM for data only, i did the following commands: mount /dev/srv-vg/lv-data /mnt/data vi /etc/fstab /dev/srv-vg/lv-data /mnt/data ext4 defaults 0 0 The mount ...
user avatar
-1 votes
1 answer
3k views

sudoers audit error on kali linux

I update my kali linux successfully but on reboot when I use sudo command it did not work and got the following error:- 1) error initializing audit plugin sudoers_audit
user avatar
1 vote
1 answer
269 views

How to enable 'reboot' and 'shutdown' on a fresh debian install

I just installed a new Debian System from the Testing-Repository: Operating System: Debian GNU/Linux bookworm/sid Kernel: Linux 5.15.0-2-amd64 Architecture: x86-64 for some reason ...
user avatar
  • 4,848
0 votes
1 answer
358 views

How to increase size of storage for centos-root without losing data on it and other disks?

Is there any possible way to take space from centos-home and add it to centos-root or /dev/mapper/root? my storage details: Filesystem Size Used Avail Use% Mounted on devtmpfs ...
user avatar
0 votes
1 answer
124 views

Linux, switch file permissions from root to normal user

The file made after running Alphafold2 database is saved with root authority. As a normal user without sudo authority, how can I switch a made file from root to my own? and what if I have root access? ...
user avatar
0 votes
0 answers
56 views

How do I run ssh commands under sudo with x11-openssh-askpass installed, keyfile based authentication?

I'm trying to run a command (sudo -t snap-sync -c root -r [remote device address] -u [remote device's btrfs storage device]) using the snap-sync package. However since I have x11-ssh-askpass and ...
user avatar
0 votes
1 answer
556 views

How do I reset my root password on Chromebook?

I am very new to Linux and I'm not super computer savvy so that's sort of why I don't really know what I'm doing. I try to reset my root password in a Chromebook. As far as I know, I need to boot to ...
user avatar
  • 13
0 votes
0 answers
61 views

Extremely slow booting time in Linux Lite since yesterday (Over 5 minutes), what should I do?

Here are the details: systemd-analyze Startup finished in 6.345s (kernel) + 5min 17.341s (userspace) = 5min23.687s graphical.target reached after 5min 17.322s in userspace here's what I get with: ...
user avatar
  • 1
-1 votes
1 answer
33 views

How do I gain access to a server if it has no ports open?

I know the IP address and the root password of a server running Linux, but it has no network ports opened. I can ping it and it responds. How do I gain access to it?
user avatar
  • 1
0 votes
0 answers
1k views

How can I install "sudo" without root access in termux?

I am using termux Linux emulator. I tried most of the Linux commands and most of it worked but when I tried sudo it shows No superuser binary detected. Are you rooted? I think it needs the device ...
user avatar

1
2 3 4 5
23