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
1
vote
1 answer

Root cannot access a directory - access denied

Under Linux (Ubuntu 14LTS), I'm trying to access an encrypted local directory created by a regular user (encfs) as root, but I get access denied: root@toad:/home/robert# cd inbox bash: cd: inbox: Permission denied How is it possible? How to allow…
Konrad Gajewski
  • 1,518
  • 3
  • 15
  • 29
1
vote
1 answer

Amazon EC2 Centos instance needs sudo password after update

I've got a terrible problem on a running webserver. It's a webserver running on CentOS, one of the default Amazon EC2 AMI's (images). I've been able to ssh to the server and do my thing until now. After a 'yum update' a sudo command from the ssh…
Keugels
  • 121
  • 1
  • 2
1
vote
1 answer

How to fix sudo file on EC2

I managed to save my sudoers file with a syntax error so now I can't do sudo -i any more on my EC2 instance. This effectively locks me out of root account since the only way to get root access on EC2 is via sudo. How can I fix this?
1
vote
1 answer

Is using su to drop root in shell scripts a security risk?

When searching for how to drop root permissions in shell scripts, I often see answers using su. However, when you're done using su you can just type logout and be back at the shell of the original user. I have a bash script running as root, and I do…
Hamy
  • 367
  • 3
  • 11
1
vote
2 answers

Reset MySQL 5 root password on Mac OS X

I just installed MySQL 5 on Mac OS X Snow Leopard (10.6.1), set a password and forgot it. I tried to follow this tutorial: http://blog.innovativethought.net/2007/05/17/resetting-your-forgotten-mysql-password/ but when I…
user42235
1
vote
2 answers

Should I sudo as root or use a public key

I have read a few times to disable root login and sudo as root using another user. But is using a public key as good if not better security?
Kline
  • 247
  • 1
  • 5
  • 17
1
vote
3 answers

root + crontab : permission denied

I'm using Debian 6, all patched up, but when I try to access crontab as root, I just get a permission denied: root@server:~# crontab -e -bash: /usr/bin/crontab: Permission denied Please note this isn't as a user, but as root. I haven't even got the…
Fozzedout
  • 13
  • 1
  • 1
  • 4
1
vote
1 answer

Extend root logical volume for VM with Oracle Linux of VMWare

Please make me sure did I wrong thing, or not. I'm resizing the root partition which is under the LVM. This server is a VMWare's virtual machine with Oracle Linux. I'm using this article:…
Evgenii Iablokov
  • 660
  • 2
  • 9
  • 15
1
vote
1 answer

Setting enviromental variables for login shells under root account in FreeBSD

I am currently in the process of configuring Open Grid Scheduler in FreeBSD. As part of this process I need to set the environmental variableSGE_ROOTas root. To do this I have been experimenting with attempting to set this value through the root…
user225584
1
vote
1 answer

How to change protected config files via web/php interface?

I'm looking for way to modify configuration file that resides below /etc directory via web (in particular case PHP) interface. While it's not a problem to read (if you set up file permissions correctly) it is when it comes to modifying/writing to…
greenV
  • 111
  • 2
1
vote
1 answer

Linux server is usually refusing root ssh/sftp connections; how to fix?

A friend approached me about what appeared initially to be a Wordpress issue on a blog hosted on a Linux box; Wordpress was not upgrading XYZ at first attempt. I tried to get some diagnostics and maybe manually update Wordpress, only to find that…
Christos Hayward
  • 1,162
  • 3
  • 16
  • 35
1
vote
2 answers

Changed SSH default port and disabled root login. Client didn't save the new port can't login/connect to it now

Working on my centos server. Connecting via putty. Changed SSH default port and disabled root login. But the client didn't save the new port and defaulted back to 22 (my new one was 42650 or something like that). So now I can't login/connect to it.
1
vote
3 answers

Create mysql database and user with only system root privileges but not mysql root privileges

I have been granted root privileges to a server for a class project. I need to create mysql databases and users. I without tracking down the right people at the university do not have mysql root privileges though. Is this possible without resetting…
arcane
  • 13
  • 3
1
vote
1 answer

recovering from a plaintext password in usermod -p

My small office's server was under attack yesterday and today and apparently the hacker gained access through a weak password (i.e. I am to blame entirely). The moment I noticed this, I fysically disconnected the server from the internet and changed…
zenlord
  • 232
  • 2
  • 9
1
vote
1 answer

Can't delete directory as root

i've created a directory for a nodejs app some time ago, called blog. The app was started with forever start app.js, nothing special. Now i tried to delete the entire app with folder, i stoped the app and did rm -rf blog -> no permissions - all…
Florian Brinker
  • 173
  • 1
  • 3
  • 10