Questions tagged [root]

root is the default administrative account for Unix-based systems. It is comparable to the Administrator account of a Windows system.

root is the default administrative account for Unix-based systems. It is comparable to the Administrator account of a Windows system.

548 questions
4
votes
1 answer

How to break from infinite loop, caused by PHP script running as root?

I have PHP script running right now with root permissions that starts from the following lines: set_time_limit(0); ini_set('log_errors', 1); ini_set('error_log', "log.txt"); It was accidentally started by web management panel from root user as cron…
Galichev Anton
  • 153
  • 1
  • 1
  • 4
4
votes
5 answers

mysql fresh install asking for root password

A couple of years back i tried to install apache, php and mysql on my mac. I got it all working but in the end i got fed up of doing everything on the command line so switched to mamp Now I'm fed up with the sluggishness of mamp and want to get…
msaspence
  • 201
  • 2
  • 3
  • 8
4
votes
3 answers

Why is my $PATH variable for root different when I use su root

When I was trying to run chkconfig as an ordinary user (on CentOS 5) I realized that I could not access it because the directory, sbin, is not in my $PATH. When I su to root it still doesn't work. I realize that the $PATH variable is the same as the…
Ron
  • 157
  • 1
  • 9
4
votes
1 answer

How to use rsnapshot without remote root?

I've configured an in-house server to use rsnapshot to backup our hosted RHEL servers but in order to do so, I'm using the root account on those servers so I have access to everything including restricted /etc files like /etc/shadow. Is there a…
wag2639
  • 2,145
  • 6
  • 24
  • 33
4
votes
3 answers

chmod -R 777 / on ubuntu - numerous problems

A client has accidentally given the entire filesystem full permissions on their ubuntu 10.04 box. chmod -R 777 httpdocs/cd / As you can see they attempted to cd to the root, and instead gave chmod a fun parameter to play with. First sign of the…
ncatnow
  • 141
  • 1
  • 1
  • 3
4
votes
2 answers

Chown root mistake

I accidentally executed the chown userx:userx / command. Is there a way to fix this in a gentle way? I know the mysql folder has to be owned by mysql:mysql. But what about the other folders? Are there permissions scripts available? It's a VPS that…
Johan
4
votes
7 answers

How do I securely execute commands as root via a web control panel?

I would like to build a very simple PHP based web based control panel to add and remove users to/from and add and remove sections to/from nginx config files on my linode vps (Ubuntu 8.04 LTS). What is the most secure way of executing commands as…
Chris J
4
votes
2 answers

Why is the root home directory, /root not in /home? (looking for reasons other than /home is mounted on a different drive)

i know that one reason for /root not being in /home is that usually /home is mounted on a different disk and if it were to fail, we still want root to be accessible. What are some of the other reasons for this structure?
dor
  • 77
  • 1
  • 6
4
votes
3 answers

How to intentionally cause ssh root connection refused

Simple, how do I make ssh (port 22) drop/refuse a connection if root@ip_address request is received, but still allow user@ip_address to work properly. Basically hide the fact there's a server at that particular ip_address. I'm having issues with…
3
votes
1 answer

Why does CNAME for a root domain conflict with most other records?

As far as I understand, a CNAME record is served to retrieve only the A record of its destination. E.g.: www.example.com CNAME domain.com Here the DNS resolver will search for the A record (IP address) of domain.com. It is not allowed by RFC to use…
t7e
  • 161
  • 1
  • 7
3
votes
3 answers

Why are emails sent to root redirected to nobody?

$ uname -a Linux xxxx 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux $ cat /etc/aliases # See man 5 aliases for format postmaster: root root: root@xxxx.xxxx email received by nobody. $ sudo mail -f …
scrapy
  • 337
  • 4
  • 17
3
votes
2 answers

can't login as root on a remote Redhat Server

I am currently working on a remote RedHat server(RHEL version 6.7 x86_64). I can login as a user by using userID and password which is provided by the server administrator. But when I try to login as root by using command sudo su ,the console gets…
niraj
  • 31
  • 1
  • 2
  • 5
3
votes
2 answers

Using Unison / rsync over SSH to synchronize sites where full file system access is required yet root login is disabled

Assume two sites A and B with file server at either end. The contents of /storage should be synchronized between the sites, preserving ownership and permissions. There's no all encompassing group that group-owns all of the files in /storage. If…
datenwolf
  • 289
  • 1
  • 11
3
votes
0 answers

Reset root shell back to /bin/bash in suse 11

In my production server which is running SUse 11 SP1, the root shell is set to /bin/eksh. Not sure how come it is set to this..we are using /bin/bash as root's default shell. I tried to reset it like the following:- su -s /bin/bash su : using…
Amit Jha
  • 31
  • 1
3
votes
3 answers

What's the best way to mitigate NFS and sudo?

Quick background: We have 40 workstations running Linux. NFS is used extensively for bulk data storage and home directories. This allows users to roam freely will relatively transparent file systems. This is an educational environment where…
user225874
  • 31
  • 2