2
votes
1answer
46 views

Does root not require a password to log in as a user?

Does root not require a password to log in as a user even though a password has been set for that user? When I am logged in as "root", su user logs me in as "user". There is no prompt for a password. ...
1
vote
4answers
78 views

How to correctly enable sudo for user in Fedora 20

I followed this question in order to enable sudo command for my created user. So I added it into the wheels group and edited the /etc/sudoers file accordingly. But what I don't get about this is when ...
5
votes
1answer
161 views

Enable superuser when logged in with another user

Suppose that the machine has two users: Alice (admin) Bob (standard user) While Bob is logged in, how can Alice modify a root file (Bob does not have this permission even with sudo)? Alice tried: ...
1
vote
1answer
62 views

super user group or user?

I am using the following command in Oracle Exadata: sudo su - odiadmin As sudo prompts for my own password, I am wondering if I upgrade myself to super user or do I switch to superuser ...
0
votes
1answer
143 views

Is it possible to make a standard user that can gain NO access to root?

I'm a very new beginner learning how to use Linux. I have very little experience so far in different distros. I've set Kali Linux as the OS on a remote PC. Users will be connecting to it via SSH and I ...
3
votes
1answer
74 views

Gives access to root user for a period of time

I want to know if it's possible to give access to root user for one week or a month, for example. It's possible to increase the period of time before the defined period ends? Is it possible to give ...
2
votes
2answers
2k views

su - user doesn't work for users without a password

I've created a user on CentOS with useradd -M username. Now, I want to become that user just like su - username. It asks me for a password for that user but I didn't set a password for that user. As ...
0
votes
4answers
2k views

New user with root access in Linux Debian

I've created a new user by using "User Accounts" in "System Settings". How do I grant rights so that this new user can have the same level of access as root?
4
votes
1answer
5k views

Samba share permission denied user writing file but still shows

Very strange issue... Samba share on remote: [javaerpm] path = /u/abas/erpm/java force user = erpm guest ok = yes read only = no writeable = yes Mount command on local using ...
2
votes
2answers
215 views

Execute user script as root in startup applications

I just created a script (logscreenlock) to log lock/unlock screen events (derived from this post): #! /bin/bash dbus-monitor --session "type='signal',interface='org.gnome.ScreenSaver'" | ( while ...
3
votes
2answers
135 views

Log in as one user but authenticate as another

This might be a weird question but I wonder if there are possibilities to this. When I'm configuring a system I prefer to be root so that I don't have to sudo everything. However, the root account is ...
1
vote
2answers
1k views

change root account username

In windows it is possible to change administrator username for security reasons. Is it possible to change root username in Linux too?
2
votes
3answers
402 views

I have installed Linux distribution. Do I need to set root account or the user account is enough?

I have these credentials that I am using for logging in with my Linux distribution (Ubuntu 13.04) when starting the computer: james myawesomepassword123 I type the password on the login screen and ...
0
votes
3answers
2k views

Get environment variable of other user [closed]

Is there a way I can see the environment variable of an other user? I want to do that as root, so permissions won't be a problem I guess. For the user himself, I use echo $PATH or set | grep PATH ...
3
votes
1answer
428 views

Is there a way to find out how many instances of the root user are logged into a Linux machine?

We have a handful of users that login to our Linux virtual machine as root either through the vSphere client or through SSH and I want to see if there is a way to tell if multiple root users are ...
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 ...
3
votes
2answers
685 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 ...
1
vote
1answer
6k 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 ...
3
votes
1answer
167 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 ...
7
votes
1answer
607 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 ...
5
votes
4answers
1k views

How sudo/root-ness detection works

Programs that make changes system-wide require sudo unless I am already the root user. Now, the question is: how exactly does the system figure out that I am (not) root? Does it: Check to see if ...
6
votes
7answers
2k views

Is it bad practice to set root's shell to something other than the default?

Once a friend of mine (who is an experienced Unix/Linux user) told me that setting root's shell to something other than sh (i.e bash or zsh) might create problems, because some script might assume ...
12
votes
11answers
1k views

Concern about logging in as root overrated?

For personal linux on my personal notebooks, I've usually set my environment to autologin as root even under X or lower runlevels. I've found my workflow is very pleasant and fast, without any ...