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
2
votes
1 answer

Home directory owner is root instead of user

I am adding users using the command useradd in opensuse 12.1 and creating a home directory on NFS. The problem here is the home directory's owner is root instead of user. msvlsi67:~ # useradd -g users -d /export/home/raj67 -m raj67 useradd:…
user1291759
  • 141
  • 1
  • 2
  • 4
2
votes
2 answers

Run a script as root from apache

I would like to update my hosts file and restart dnsmasq from a web interface (php/apache2). I tried playing around with suid bits (the demonstaration). I have both apache and dnsmasq running on an EC2 instance. I understand that Linux ignores the…
Lord Loh.
  • 1,089
  • 3
  • 16
  • 25
2
votes
2 answers

How to give ownership to root without being root ? (needed for Apache)

I've got a PHP script that creates a folder on my server. This folder is supposed to be accessed via Apache, and users can view it online. Now if I create this folder while being root, everything works as it should, I can view the html/php when…
xtrimsky
  • 123
  • 1
  • 3
  • 12
2
votes
3 answers

Git: push via ssh to a root owned repository with ssh root logins disabled

is that even possible? Summary, i'm running puppet master on a server and ideally we want root logins via ssh disabled, we want to force all access via sudo if root access required however we have puppet installed using a git repo to manage the…
anthonysomerset
  • 4,233
  • 2
  • 21
  • 24
2
votes
1 answer

How to share drive root of USB hard drive in Windows Server 2008?

Windows Server 2008 -> Computer Management -> System Tools -> Shared Folders -> Shares I can set up a share for the root of the external drive, but I cannot access it from another computer on the network. On the other hand, if I set up a share for…
Triynko
  • 3,418
  • 6
  • 31
  • 30
2
votes
3 answers

Access file outside document root

I'm trying to write on a file that is outside the document root, which is /var/www/html. The file I want to access is /home/user/files/folder1/info.txt, but my PHP file can't open it (it does even say that it doesn't exist, I checked it with…
Ivan
  • 313
  • 1
  • 5
  • 11
2
votes
1 answer

Main Apache pid as root, even though set up to be nobody?

I believe I had set everything up correctly when I had built the server (maybe it was a pre-configured LAMP that the VPS host Linode supplied that set things up) It seems that every Apache process runs under the user nobody which is what I had…
Alexander
  • 207
  • 1
  • 3
  • 11
2
votes
3 answers

running red5 on port 80

I have a red5 application http://code.google.com/p/openmeetings that runs under red5, and is accessible on port 5080 and 8443 I've installed it on Ubuntu 10.04 The eventual aim is to have it accessible via https on 443 instead of 8443, but I thought…
shouldbeq931
  • 509
  • 4
  • 15
2
votes
1 answer

How do I regain access to root after accidental chsh command that went bad?

I did a silly silly thing. While attempting to change the shell for user 'x' I was in a rush and did not type the users name at the end of the command, so I ended up running this: chsh /sbin/nologin This seemed to have then changed the default…
SimonDowdles
  • 131
  • 2
2
votes
3 answers

Root access amazon ec2

Hey guys, I am very new to linux, and amazon-ec2. I wanted to put a quick server. For some reason, when I sign in with my key pair, it prompts me for a username, I input ec2-user, and I'm in. The problem is that I don't have root access (and can't…
Jess
  • 389
  • 1
  • 6
  • 16
2
votes
4 answers

1 server for only 1 website, should I use the root user or another user?

So I need a server that will host only 1 website. I will install debian as O.S. I want to know: do I need to setup an user to do my stuff or, considering I will the only user of the server, I can use the root user to login via ssh and to do all my…
dynamic
  • 740
  • 6
  • 17
  • 32
2
votes
2 answers

Untar with root: is it possible to set the uid?

Is it possible to tell tar to unpack the archive and set the uid/gid to a specific one, when you run tar as root (while using chef) ? Things I already know: I can use -o to extract as root, then chown uid:gid afterwards --owner and --group…
Thibaut Barrère
  • 691
  • 1
  • 9
  • 17
2
votes
3 answers

Root password contains character that can't be entered

Don't know what happend really. I changed the root password to a long password containing weird characters, and triple checked that I could log in with it, and has been ever since. Until now. I think the bad character is a ’. How do I enter that in…
Markus Hedlund
  • 1,127
  • 2
  • 19
  • 33
2
votes
1 answer

Cannot Login as any user other than Root - permission denied

Help! I'm desperate :) I can't login as any user other than root. I'm on Ubuntu 10.04. Here's command output: root@pinky:~# adduser test Adding user `test' ... Adding new group `test' (1003) ... Adding new user `test' (1003) with group `test'…
Charlie
2
votes
1 answer

Used recursive chown on the root directory

Im gonna need some help restoring my ssh settings as i screwed everything up by calling this command: chown -R user / At the moment im not able to access the site through ssh/ftp since the ownership of all the files have been changed. I dont want…
Matt