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
13
votes
2 answers

What is the difference between "sudo -i" and "sudo bash -l"

There is a recent question regarding multiple sysadmins working as root, and sudo bash -l was referenced. I searched for this on google and SE, but I don't understand the difference between sudo bash -l and sudo -i. From the man pages for bash and…
Rqomey
  • 1,055
  • 9
  • 25
13
votes
1 answer

Is PermitRootLogin=prohibit-password still necessary when PasswordAuthentication=no?

Our server cluster has remote root access enabled for rescue purposes, and we generally set PermitRootLogin prohibit-password in /etc/ssh/sshd_config because LDAP users can still login using password. Recently we added an extra server with very…
iBug
  • 1,212
  • 2
  • 13
  • 23
12
votes
5 answers

ubuntu: let a user run a script with root permissions

I have ubuntu 8.04 and I want to write a bash script that runs as root which every user can run. I myself can do sudo. How do I do that? CLARIFICATION: I don't want to do it with sudo, because then users will have to type their password. I just want…
flybywire
  • 597
  • 4
  • 9
  • 20
12
votes
11 answers

Best way to go about changing a root password on 3000+ Solaris, AIX, and Linux servers?

Long story short: Big old corporation, lots of UNIX/Linux servers. I inherited responsibility for a bunch of scripts that that left a few years ago. One of them was a script that would be run every $X amount of months to globally update the root…
fizzlepapers
  • 305
  • 1
  • 2
  • 10
12
votes
3 answers

What's the best solution to manage root password of thousands servers

I'm a system administrator. In the production environment I need to manage thousands of servers. My colleagues and I uses a central manage server and distribute its public key through other servers. So we can use this manage server to ssh to other…
yegle
  • 696
  • 7
  • 18
12
votes
4 answers

Is there any way to point the root domain to a CNAME?

Here is the problem: we host our website with an external provider that doesn't give us an IP address, rather, they give us a domain where we point our www CNAME record to. I assume they are using some type of virtual hosting that reads the header…
Ryan Mortier
  • 498
  • 3
  • 8
  • 19
10
votes
2 answers

Root is not allowed to grant privileges on a MySQL database

I have a MySQL database and I am not able to grant permissions to users on newly created databases when logging in as root. mysql> create database test1; Query OK, 1 row affected (0.00 sec) mysql> grant usage on *.* to 'test'@'%' identified by…
sz4kerto
  • 201
  • 1
  • 3
  • 5
10
votes
1 answer

Recommended way to start supervisord from non-root bash script?

I have set up supervisor to monitor some processes. Because I deploy via remote script, I need a way to send supervisor start/stop commands without sudo. I'm not sure how to do this though. Is there a way in supervisor to run specified commands as a…
user1561108
  • 205
  • 1
  • 2
  • 6
10
votes
6 answers

Why shouldn't root be allowed to login via ssh?

why should root access be disabled for ssh? I always hear that's for security reasons. But I don't get it. What's different to login as non-root and then sudo su -? What's the preferred way to handle tasks that need privileged…
Thomas
9
votes
2 answers

should use sudo or just su root in server management?

Which approach is better? For desktop usage, it seems that sudo is better since: I can have a more consistent history as a normal user Don't need to remember two passwords, which is especially true when I don't do administrative stuff…
weakish
  • 211
  • 2
  • 7
9
votes
4 answers

Write once, read many (WORM) using Linux file system

I have a requirement to write files to a Linux file system that can not be subsequently overwritten, appended to, updated in any way, or deleted. Not by a sudo-er, root, or anybody. I am attempting to meet the requirements of the financial services…
phil_ayres
  • 191
  • 1
  • 3
  • 12
9
votes
2 answers

NFS Share with root for anonuid / anongid

I've exported a share from my server and set anonuid and anongid to be 0 (root). However, when I mount the share on the client, it doesn't appear my settings are working as I'm getting permission denied to folders within the share owned by…
Jason
  • 381
  • 1
  • 7
  • 20
9
votes
4 answers

root full Linux. No free blocks

df -h reports the '/' partition to be 100% full. While running du -hs * on each directory of this partition shows there is still lot of space. tune2efs which reports just one block to be free. Ran fsck as well, which also shows all blocks being…
Ankit
  • 215
  • 2
  • 10
9
votes
1 answer

Why is the root user named root by default?

This might seem like a silly question but I could see this as being confusing. For example: "Go to root directory" Could be interpreted as: Go to / Go to ~root (usually /root/) I would think something like super would of made for a better default…
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
8
votes
1 answer

Ansible ssh as user and execute has root (expect like)

I have to administer an important number of hosts where there is only one user able to access from SSH (let's call him foo) and then have to login as root to execute privilegied commands. Foo user doesn't have any kind of sudo privileges so I'm…
Arka
  • 173
  • 1
  • 2
  • 8
1 2
3
36 37