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

learn more… | top users | synonyms

2
votes
1answer
2k views

How do I restart apache as non-root (using a git-hook)?

For one specific user I want to be able to restart Apache. This user does have sudo privileges and I could run sudo /etc/init.d/apache2 reload, but I want to include this restart script in a git post-...
0
votes
1answer
81 views

Difference between sudo user and root user [closed]

The /etc/sudoers file lists which users can do what with the sudo command The root user creates and modifies the /etc/sudoers file. This concept is difficult for me to understand. If all users ...
0
votes
1answer
21 views

adding a sudoer in debian

After a long search on the web, trying everything I can find I came to ask you guys, how can I add an existing user to be a sudoer? I've tried usermod -a -G sudo user and also adduser user ...
1
vote
1answer
37 views

passwd: Authentication token lock busy

I'm using ASUS Chromebook Flip with Google Chrome OS 53.0.2773.3.dev: chronos@localhost / $ cat /etc/os-release NAME=Chrome OS ID_LIKE=chromiumos GOOGLE_CRASH_ID=ChromeOS BUG_REPORT_URL=https://crbug....
0
votes
2answers
16 views

Can I change the permissions of files that root has read only access to?

A few days ago I made the switch from Debian to Arch. When I did that, I backed up my files to an external harddrive. I've moved the contents of that backup to my normal harddrive. Now I'd like to ...
4
votes
2answers
80 views

Linux root access recovery by booting on the console

This is my first question so bear with me please. So I have a concept in mind that I can't quite grasp. Very recently I recovered a root password for a Debian server by booting into single user mode. ...
0
votes
0answers
21 views

PuTTY accessing Dedicated Server files? [closed]

What I want to know: in PuTTY how can I switch a files host from www-data to root. Whenever I try to access it, it says the following: Error Listing Directory "/var/www/multicraft" Permission denied....
0
votes
2answers
123 views

acroread only runs as root

Note I already asked the exact same question here, with no success. I hope it's not a problem. I am working on a computer connected to a LDAP server. The computer is running under Linux Mint 17. I ...
1
vote
1answer
22 views

Can't remove ttyS0 from /etc/securetty

Running RHEL6.6. Been trying to secure the system, and am having difficulty disabling root logins over the serial connection. My understanding is that I need to comment-out/remove the ttyS0 line, ...
1
vote
2answers
6k views

How to autologin as root to mint 17.1

I would like to know how to autologin as root on mint 17.1? I've been able to login as root from the login screen (by enabling root access in login window settings and changing the theme to clouds). ...
1
vote
1answer
47 views

Why super user is disabled in iOS and Android

I know that both iOS and Android are based on UNIX. Then why is it that super user is disabled in both of them? In iOS we have to jail break and in Android we have to root. On the other hand in OS ...
12
votes
4answers
12k views

why does sudo work on Linux but not Android?

I have not had the chance to read enough about Android, Linux, or UNIX to answer this myself. sudo works on a Linux machine but doesn't work on Android unless you root the mobile device (e.g. Samsung ...
0
votes
0answers
19 views

Define root prompt and non root prompt in one rc file

I'm writing a restore script for my dotfiles and I find it really irritating that I have to have two .tcshrc for both root and user where they only differ by one line. Is there a way of defining the ...
0
votes
2answers
850 views

Root access denied in LiveUSB of Portues

I am on Live Linux USB of Porteus linux and I copied it to RAM. I want to access root folder for making changes so that settings gets saved. but this is showing up
1
vote
1answer
541 views

Crontab permission problem

I have a fc19 host at work. This morning crontab did not work. $ ls -l /usr/bin/crontab ----------. 1 root root 53472 Jun 11 2013 /usr/bin/crontab The permissions -------- means no one has access ...
0
votes
1answer
58 views

Execute commands without sudo inside jenkins

I've imported a bunch of jenkins jobs and these jobs have a lot of shell script commands.There are no sudo before these commands.Jenkins has its own user.Is there a way so I can execute these commands ...
3
votes
1answer
43 views

Cannot bypass login screen with correct credentials and no errors in Kali Linux

Today I downloaded the latest VMware image of Kali Linux (Kali Linux 64 bit VM). After that, I configured the hostname in /etc/hostname and adapted also the /etc/hosts to set permanently a hostname. ...
33
votes
2answers
2k views

How does the power button shut the computer down without root permission?

When I try to shutdown the computer from a command line or terminal I must have root privileges: amy@amy:~$ shutdown now shutdown: Need to be root and amy@amy:~$ halt halt: Need to be root but ...
18
votes
7answers
15k views

Can root/superuser read my read-protected files?

On shared unix hosting, if I have a file sensitive-data.txt and I issue: chmod 600 sensitive-data.txt Can root user still read my file? Specifically I'm wondering if it's safe to store my password ...
0
votes
3answers
131 views

Disable root login in CentOS 7.2.1511

Allegedly, if you are logged in as non-root and write sudo passwd -d root, root login will be disabled, meaning that you have to log in as another user and use su to switch to root (or just stick with ...
2
votes
1answer
58 views

How to restrict su from root to nis clients

We are using NIS services for users login for Unix accounts. We have test machines where users themselves install OS and they get root access. Users are using su from root account to NIS user accounts ...
0
votes
1answer
32 views

Different hostname / prompt is shown after logging in as root

[mayur@centos ~]$ su Password: [root@centos mayur]# I want it to be "centos" only. How to do it?
1
vote
1answer
19 views

System booted up, but can't login as root

I just got my system to boot up (Scientific Linux), but at the login screen I can't login as root. It doesn't even ask for a password, just says Login incorrect. So what I see is: localhost login: ...
1
vote
1answer
70 views

What to do if the owner of /usr/bin/* changes to a non-root?

It would be the right thing to say that I messed up! Accidentally, I changed the owner of all files in /usr/bin to 'dev' from 'root'. Now, sudo does not work! If I use sudo with any command, I get - ...
1
vote
1answer
46 views

create user with only permissions to execute C Programs

I am trying to build online code editor. My scenario : Through the web server a request is received for a 'C' program -the root user creates the file, compiles the file and acks success to the user. ...
1
vote
1answer
33 views

How do I make my script launch the screen as non-root

I'm running Minecraft, starting it automatically from from /etc/rc.local. I have that run /home/kent-server/mc/spigot.sh and inside that is screen -dms minecraft Java -jar -Xmx5120M -Xms5120M spigot....
4
votes
1answer
2k views

How do I stop Apache from running as root?

New on the job, small place, and the security stuff just landed on my desk. I was hired to be a front-end developer. Happy to learn new things, but never had to do sysadmin stuff before. I started ...
0
votes
3answers
28 views

Does it matter if I'm root or not when installing apache?

I need to install a LAMP stack on a RHEL 6.7 server. Do I have to be root to install this or not?
0
votes
2answers
42 views

One shell script to perform commands locally and remotely

So, here's the problem. I have a file on a remote machine available only to root, and a private-key-only no-root SSH access(I do have sudo though). I need to copy that file to the local machine, and ...
9
votes
3answers
268 views

Set-uid executable and resulting process user

In Ubuntu 14.04, the passwd executable is -rwsr-xr-x 1 root root 47032 gen 27 01:50 /usr/bin/passwd and the ping executable is -rwsr-xr-x 1 root root 44168 mag 7 2014 /bin/ping so (for both) ...
1
vote
4answers
130 views

Edit /etc/passwd file from grub

I tried installing zsh on ubuntu ( 14.04). When I switched to zsh, I was unable to go into super user mode. If I do a su it asks for passwd and on entering the correct password, it says: Cannot ...
4
votes
1answer
44 views

Unable to get sudo lecture working on CentOS 7 server

I'm trying to enable the sudo lecture every time someone executes sudo, but I can't seem to get it working at all. I found a similar question here, in which someone states that if you don't see any ...
0
votes
0answers
20 views

Is it ok to run as root on Arch Linux? [duplicate]

I read an Arch Linux blog as well as googling this but I haven't found information on running as root on Arch... I have an Arch based system. Sudo is not installed by default, that's why for months I'...
4
votes
2answers
64 views

Tool to watch other ttys for linux?

BSD systems have a neat watch tool for snooping other ttys : Have you ever had a user login to your box and then ask you for help? Or have you ever been curious as to what your users are doing on ...
0
votes
1answer
41 views

Centos VMWare backup emergency mode password reset

I have recently backed up my remote virtual machine and downloaded the data into my local. I did the setup on my local with VMware workstation and tried starting the server. I realized I missed ...
2
votes
1answer
26 views

CentOS requires root pw for network pref changes

Why does CentOS require root privileges to configure the preference panels? It seems like sudoer access really should be sufficient for this. Is it possible to change this?
25
votes
3answers
99k views

How do you change the root password on Debian?

I want to change the password I assigned to root on my Debian webserver to something longer and more secure. Bit of an obvious newbie question, but how do I do that? I haven’t forgotten/lost the ...
2
votes
2answers
15k views

can't ssh into remote host with root, password incorrect

I have a remote host, previously I can ssh into it with root and password ssh root@remote_host or I ssh into it first using a regular user account ssh esolve@remote_host and then su root and ...
0
votes
1answer
125 views

I moved root partition by error

I'm on a VPS with CentOS 6.5 I was trying to install ASSP so by error i did this command mv -f /* /usr/share/assp and then I can't do anything when I try something like: [/]# dir -bash: /bin/ls: ...
2
votes
2answers
437 views

Can't run aplay as root!

Not that I need to aplay as root but it came across me and I wondered why it shouldn't work. # aplay /home/bibek/apert.wav XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid ...
3
votes
1answer
76 views

How do I set up busybox to allow a non-root user to set the date?

I have an embedded system built with busy box. I allow a user named "app" to download a program/script to a directory and it will be run on boot. The program should be allowed to set the date. It ...
0
votes
1answer
21 views

Copy /home without root [duplicate]

I installed Xubuntu on a friend's PC and he understood, that is it greater than Windows 10. He has no practice with shell and dont want to use it! The PC is used by several people. He (the owner) is ...
3
votes
3answers
104 views

How can I test if a file in /root exists without su to root?

My OS is Ubuntu 14.04 LTS. I got a file /root/1.txt, and logged in with 'yu', who doesn't have read permission on this file. When I use the code if [ -e /root/1.txt ] , it returns false. I know I can ...
0
votes
0answers
61 views

Centos 7 root passwd reset

I was stupid enough to log my root password on one spot and that crashed so I lost my root password to my server. I followed the guild of https://access.redhat.com/documentation/en-US/...
0
votes
0answers
52 views

How to run a Qt application on a remote host as root?

Deploying a Qt application to a remote linux host is straightforward. However, the program runs with the rights of currently logged in user on the remote machine. For debugging purposes, I often ...
1
vote
2answers
58 views

Why when I try to execute a program as normal user I get denied, and when I execute it with sudo I get “Not Found”

In order to execute mysqlbackup I have to execute it as root. Here's the example when I execute it as normal user: mysqlbackup --compress --user=root --socket=/var/lib/mysql/mysql.sock --backup-dir=...
13
votes
6answers
2k views

Is there a root password on OS X and Ubuntu?

When you setup a new Ubuntu or OS X installation a user is generally created for you. On OS X it is whatever username you pick. On Ubuntu (the server version) usually the ubuntu user is created. The ...
2
votes
1answer
59 views

How can I merge 2 disk images into one with 2 partitions?

I have 2 (relatively small) disk images for qemu (raw format) containing different filesystems (say fat and ext4). I want to put them into an usb stick as two different partitions so that I can plug ...
1
vote
1answer
2k views

Start application as root at boot time on Ubuntu 14.04

I'm working in Ubuntu 14.04 I have an C++ application which I have compiled. I get the executable which name is "program". Well the thing is that this program use opencv and sockets then if I try to ...
3
votes
1answer
56 views

Is it safe to make symbolic links in /root to config files in a a users home directory?

Does symlinking from /root to a configuration file in a users home directory bad practice security-wise? For example I currently have /root/.vimrc symlinked to ~/.vimrc Is it a viable attack to make ...