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
5
votes
8 answers

protecting my files from root

In a remote box, my files are 700-chmoded, but I'm worried that root may be reading them. Is there a way to add another layer of protection to avoid that, perhaps by encrypting them, but allowing smooth on-the-fly decrypting when programs run by me…
user21690
  • 177
  • 1
  • 4
5
votes
8 answers

How to specify root's environment variable?

I do rails development. In this app, I need to specify the environment variable LD_LIBRARY_PATH = /usr/local/oracle/lib, but when I run the app with sudo script/server, it doesn't run because that library path is not in root's env. What should I do…
Wendy
5
votes
1 answer

How do I "sudo -i" specific command

I need to run important_script.sh as with sudo -i without password. If I have in sudoers: apache ALL = (root) NOPASSWD: /blah/important_script.sh and run "sudo /blah/important_script.sh" I can run it without password. However if I run "sudo -i…
gilbertasm
  • 95
  • 2
  • 13
5
votes
6 answers

MySQL root problems (access denied for root user)

I've having some very weird issues with my MySQL (5.5) root user. I'm trying to allow an external host to access the root user, but it seems as though my root@localhost does not have "GRANT OPTION" to the local databases! I think the issue at this…
Matthew Salsamendi
  • 318
  • 4
  • 5
  • 15
5
votes
2 answers

Lost Linux root password - Recovery mode and init=/bin/bash fail

I lost/forgot the root password to a server sitting beside me and am trying to reset it. I would rather not have to wipe and re-install or use a Live CD (server is running Ubuntu Server 12.04). What I've tried so far... 1) Boot into "Recovery mode"…
Albeit
  • 161
  • 1
  • 1
  • 2
5
votes
5 answers

Linux - How to manage the password of root?

We have just deployed a couple of Linux server. Each sysadmin will have his own account on the server (i.e.: jsmith), and will connect using SSH with a certificate which will be put into the "authorized_keys" file in their home directory. Once…
Jonathan Rioux
  • 1,938
  • 6
  • 33
  • 57
5
votes
3 answers

Why does 'pkill /?' kill my SSH session?

After running the following commands (bash) as root via SSH: pkill --help pkill -h pkill /? The first two commands didn't provide me any information, that's why ran the third (kinda instinctively...). What happened next is that my SSH…
scooz
  • 233
  • 1
  • 3
  • 8
5
votes
6 answers

If I change the root password on a linux server, can someone still access root if they created an SSH authorized_key for root user?

I'm not even sure if I asked that right. Anytime someone mentions changing the root password, they mention changing /etc/passwd, or just using the passwd command, but I've never heard of having to change it in an authorized_keys file as well. Where…
user11958
5
votes
2 answers

SFTP Access Restricted with new Sudo Root User

So in attempts to secure my server a bit, I created a new user with su - root access and denied root login. Now I can't SFTP any files on my server through Filezilla with this user. These are the steps I took : Created new user, new pass, SSH'd to…
RCNeil
  • 615
  • 3
  • 9
  • 17
5
votes
2 answers

Allow non root access to /root folder

I have a folder that normally lives under /root and is usually used by a root user. I need to allow another user (other than root) to use it now, but it has to remain under /root. Is that possible? EDIT: Thanks everyone for the comments and help. We…
mjouni
  • 53
  • 1
  • 4
5
votes
1 answer

Ports below 1024

DISCLAIMER: I know how to run daemons that either listen on ports <1024 by using privbind or some iptables REDIRECT. Or more generally spoken, how to make daemons available on priviliged ports that usually don't run there. The question itself is…
serverhorror
  • 6,478
  • 2
  • 25
  • 42
5
votes
3 answers

Root users and mysql: `sudo mysql` vs `/root/.my.cnf`

I have a /root/.my.cnf file which stores the mysql root user's password: [client] password = "my password" When I log in as system root and enter mysql, I get a passwordless login: myuser@local:$ sudo su root@local:$ mysql mysql> But when I try to…
user67641
  • 1,292
  • 2
  • 14
  • 18
5
votes
2 answers

How to change the password for root@127.0.0.1 and root@example.com

I was looking at the users in my mysql.user table and noticed that there are 3 roots. root@localhost root@127.0.0.1 root@example.com When I first discovered this none of the roots were password protected. I managed to password protect…
jasonaburton
  • 263
  • 1
  • 4
  • 9
5
votes
7 answers

Server was hacked. Now login wont accept 'root' as username comes up invalid

On Fedora, root is coming up invalid. WHat is solution?
mikenicee
5
votes
4 answers

How to override a PATH environment variable in sudo?

I set PATH in /etc/profile. I do not have any problems in the case of the general user, but PATH does not go when I become the root authority in sudo. What would you do to override the PATH which is set by /etc/profile even if I become the root…
freddiefujiwra
  • 1,667
  • 5
  • 25
  • 34