The "root" account is the most privileged account on a Unix system.

learn more… | top users | synonyms

3
votes
3answers
2k views

Another account with same uid as root gets prompted to set new password for root, not itself

After upgrading the os from 5300-06 to 5300-11, this weird behaviour happened. My system had another unix account, let's call it "abc", purposely configured its uid to 0 for working as a root with ...
0
votes
1answer
2k views

su authentication failure after setting new password

I compiled a new kernel(3.2) and I have it running on an ARM board. I wanted to enable some params on the /proc directories. Therefore I have to be logged in as root. Hence I did the following on my ...
14
votes
4answers
871 views

How universal is sudo?

I was writing some instructions on how to install something (TeX-related - if you don't ask, I won't ruin your day by supplying more details) and used sudo to install system-wide. Someone commented ...
2
votes
1answer
753 views

How do I get simple scripts which seem to need root priveliges to run via the www-data user?

I am programming a small webinterface to control samba on Debian (kernel 2.6.32-5-686). I started by writing simple scripts to add users, create folders, etc. They worked fine when run as root. ...
1
vote
3answers
1k views

Root permission - username ALL=(ALL) ALL does not work

I'm a beginner. I'm trying to give my user root permissions, so I edited the sudoers file like this: black ALL=(ALL) ALL "black" is my username. But I still don't have root permissions, and ...
2
votes
1answer
159 views

Can I lock the root account during an install of Debian GNU/Linux 6 “squeeze”?

By default, Ubuntu locks account root; can I do the same, in Debian GNU/Linux 6 "squeeze", during install?
1
vote
0answers
155 views

Automatically start named pipe reader on startup?

I'm trying to run a script with root access from PHP. I can't do that because Apache's user, www-data, don't have root access because of security reasons. To fix that, I was advised to use a named ...
1
vote
1answer
4k views

How to operate as root in GUI?

Following the standard recommendation I use my Linux system with a normal account and switch to root only in special cases. When browsing the file system using GUI sometimes an error pops up - You do ...
5
votes
2answers
13k views

How to give user root permissions?

I just installed Arch. Works great. I created a new user, logged in with it and now I'm trying to install several thing with pacman. But I keep getting the error: error: you cannot perform this ...
3
votes
2answers
577 views

Start Vim as my user with root privileges

I have my custom Vim files in ~/.vim and settings in ~/.vimrc. However, sometimes I have to edit some files in /etc and such. If I start Vim like this: $ sudo vim /etc/rc.conf I lose my config ...
4
votes
1answer
514 views

SSH login as root fails, but I'm sure I entered the right password

What am I missing? I change the root password on a unix machine, then try to log in with that password. PasswordAuthentication is set to yes in sshd_config and the sshd daemon has been restarted. ...
4
votes
1answer
1k views

GNU Screen does not work when su'ing from root to a normal user

Is it normal, that when I am logged in as root, and the used su user, I can't access that users screen sessions? In this case, screen complains about it not having permissions on /dev/pts/x. I ...
6
votes
3answers
2k views

What does it mean to be in group 0?

Several users in a system I inherited have their group set to 0 in /etc/passwd. What does that mean? Do they essentially get full root privileges? The system is running CentOS 5, and the users ...
22
votes
1answer
1k views

Why can't root execute when executable bits are not set?

root user can write to a file even if its write permissions are not set. root user can read a file even if its read permissions are not set. root user can cd into a directory even if its execute ...
2
votes
2answers
271 views

Bash Process Substitution does not work as 'root' on OS X

OS X 10.6.8, if I use Bash Process Substitution as 'root', it just doesn't work. Is it supposed to be so? Why? Note: here's what I mean... "<(list)" mysql -D robottinosino < <(echo ...
2
votes
2answers
396 views

Gaining root privileges in SCO

I am learning Linux for work, so am still a bit rusty on the edges. I need to change the folder permission of the directory /opt, and I know in Linux, you do the following: chmod 775 /opt I get a ...
2
votes
2answers
2k views

SFTP and sudo using Windows client?

I want to download files from a linux system using a windows client. While there are many SFTP clients I am having the problem, that I need to access files where I need to be root. On the linux system ...
0
votes
2answers
2k views

How to assign user root rights?

I have Suse Linux on my desktop. So I am root and "normal" user. Frequently e.g. to start tomcat or install/remove a program I should use sudo or switch to super user. But I have defined many aliases ...
-8
votes
2answers
1k views

Boot Kubuntu as root user [closed]

No one uses my computer except me and no one accesses Kubuntu in VirtualBox except me. In XP if I need to edit a file I open it with a text editor, edit it, save it and then close the editor. How do I ...
2
votes
2answers
296 views

Kubuntu - GUI context menu sudo/root

A couple of years ago I found something in a package manager that added a context menu item that allowed me to open files and save them normally without being harassed about file permissions. Can ...
2
votes
1answer
601 views

How to add folder to existing user [proftpd]

As we know we can add folder to user using useradd user -p user_passwd -d /home/ftp/user_dir/ -s /bin/false but how to add folder to existing user, for example /home/ftp/root for root ?
3
votes
2answers
386 views

How to add a line to a file which has only root write permission and to continue the script execution

I am trying to learn bash scripting. I am working on a practical problem and at one point I need to add a line to a file which requires root permission to write. The code looks like this: # some ...
2
votes
2answers
932 views

how to run shell on a remote server with root priviledge

I want to execute a shell script on a remote server, and the script should be run by root with no password required (or use sudo in the script). Can anyone give me some suggestions?
1
vote
1answer
921 views

exclude commands from user's sudo permissions

Consider the following line in a /etc/sudoers file: username ALL=(ALL) ALL, !/usr/bin/passwd as far as I know, this allows user username to use sudo, unless he not uses /usr/bin/passwd. But ...
1
vote
1answer
495 views

How to invoke root privileges from a password prompt of “Software Update” window?

When I try to install software updates using the "Software Update" GUI, I am asked for the root password. Although, I can 'su' in a terminal, the password is not recognized as correct in the GUI ...
0
votes
1answer
420 views

Is it possible to run vlc as root?

I installed vlc player using an old video http://www.youtube.com/watch?v=-Uql96eLe0w I don't know how to access other users, but root itself only, so I don't know if the video is outdated or works at ...
2
votes
1answer
461 views

root can only login with bash restricted mode

I was implementing a series of recommendations to 'harden' my linux server, involving lots and lots of changes. Linux is CentOS 6.2, kernel 2.6.32-220.*. I'm currently using tty2..tty5 (no X/GUI etc) ...
2
votes
1answer
989 views

How do I restart apache as non-root (using a git-hook)?

For one specific user I want to be able to restart Apache. This user does have sudo privileges and I could run sudo /etc/init.d/apache2 reload, but I want to include this restart script in a git ...
4
votes
2answers
341 views

Force change of a user's cwd as root

I'm looking to change a user's process such that I can set it's cwd. Related, and secondary to the question, I have a filesystem I want to unmount but a user is sitting on it with a bash process. I ...
1
vote
2answers
965 views

shell script to execute in root mode

I need execute script that have commands which should be run in root mode. If I put sudo before command then when I run script I see permission denied ( I don't have a chance to write password). If I ...
3
votes
2answers
1k views

Problem with vim when logged in as root

When I login as root or edit a file by sudo mode all of the options in my /etc/vimrc are not working (e.g. highlight line-number etc.)
1
vote
1answer
5k views

switching from user to root and revers (freebsd)

i want to make some modificaciones with root and then with my user, in fact i want to install sudo and he give me the error in the first step: cd /usr/ports/security/sudo make install clean ...
9
votes
3answers
1k views

Is it safe to close shell just by clicking “X” or using “ctrl+d”?

Is it safe to close shell just by clicking "X" or using "ctrl+d" while logged in as root with su or is it safer to close it by typing "exit"? Is there any difference (security-wise) at all or is it ...
6
votes
2answers
7k views

Unable to delete file, even as root

I've got a file on remote machine (saying that, cause I don't know who the heck created it), that I've to remove. user@machine:~/folder$ ls lift_proto.db.lock.db And permissions are like this: ...
6
votes
1answer
742 views

Jailbreaking HDTV

I have a Vizio internet TV, the predecessor to this one with basically the same specs, not 3D though. I wanted to try and gain root access to the tv. Using nmap I leaned that the only port open is ...
2
votes
2answers
314 views

root account expired

I have two accounts on my computer: james and john. james is the only administrative account and a few days ago I set it to expire out of curiosity. Now am stuck. I can not login using james because ...
0
votes
1answer
1k views

Setting GTK2 theme for root

When using sudo, applications do not follow the GTK2 theme and font. How can I set identical settings for use when an application is run from root, but while inside a desktop from a user?
4
votes
2answers
148 views

System files with strict permissions

Usually, when we run ls -l we can see such picture -rwx...- so the owner always has the full stack of permissions. And usually the owner of the system files is the root. Are there any system files ...
2
votes
1answer
154 views

How do I stop Apache from running as root?

New on the job, small place, and the security stuff just landed on my desk. I was hired to be a front-end developer. Happy to learn new things, but never had to do sysadmin stuff before. I started ...
0
votes
2answers
2k views

ssh root@localhost error; help me hack this box :)

I need to gain a root shell on a linux vm for a security class. I have a user account on the system and a means to write to any file (i.e. /etc...) and want to escalate my privileges with: ssh ...
7
votes
1answer
5k views

Unable to delete file, even when running as root

I am in the process of migrating a machine from RHEL 4 to 5. Rather than actually do an upgrade we have created a new VM (both machines are in a cloud) and I am in the process of copying across data ...
21
votes
1answer
2k views

How to get root inside of vi? [duplicate]

Possible Duplicate: Becoming root from inside Vim It could happen to anyone. The admin types: vi /etc/resolv.conf as a regulare user. He edits the /etc/resolv.conf file, but when he ...
1
vote
2answers
79 views

How can I install programming tools in the root directory so that they can be used by non-admin users?

I'm running OS X and for security reasons my main account does not have admin privileges. How can I install development tools in the root directory so that they can be used by all users? If this can't ...
7
votes
1answer
559 views

Lightweight virtualization on Linux with user isolation

What Linux-on-Linux virtualization technologies provide user isolation? Specifically, I want root in the virtual machine not to have any privilege on the host. This was not the case for LXC, but was ...
14
votes
3answers
29k views

Can I change root's email address or forward it to an external address?

I'm getting a lot of mail in my root user's mail account. This appears to be mostly reports and errors from things like cron scripts. I'm trying to work though and solve these things, possibly even ...
1
vote
1answer
308 views

How to invoke root privileges from my custom app?

In a GUI-environment, I want to be able to ask the user for the root/sudo password and then execute an app that requires root privileges from within my app. As an example, say I want to run an editor ...
2
votes
3answers
181 views

What was superuser password set? [duplicate]

Possible Duplicate: Is there a root password on OS X and Ubuntu? After I installed Ubuntu, I noticed that I'm not sure what was superuser password set, If I set it at all. I know that I ...
13
votes
6answers
1k views

Is there a root password on OS X and Ubuntu?

When you setup a new Ubuntu or OS X installation a user is generally created for you. On OS X it is whatever username you pick. On Ubuntu (the server version) usually the ubuntu user is created. The ...
3
votes
2answers
217 views

Is it possible (and a good idea) to do `pw lock root` on FreeBSD?

I have set up sudo on my FreeBSD server. As I now never want to log in as root anymore, I was wondering whether I should do sudo pw lock root. My questions are: Is this possible, without forever ...
0
votes
0answers
295 views

Why do you need sudo for “sudo su root”? [duplicate]

Possible Duplicate: When do su and sudo use different passwords? Why do you need to use sudo su root ? Why won't it work to just use su root?