Anything related with user accounts and user management on Unix-like systems.

learn more… | top users | synonyms

2
votes
0answers
2k views

Permission denied for user accessing mount

Using root I can mount another Linux share no problem. root@crunchbang:/mnt# mkdir javalib root@crunchbang:/mnt# mount -t cifs //10.1.3.7/javalib ./javalib -o username=guest Root can read/write to ...
3
votes
4answers
795 views

How do I know a specified user's permissions on Linux with root access?

I have root access to my local server. And some days ago my colleague created a user on that server, giving me the uesrname and password. But the user has a minimized permissions. Like the user can't ...
-1
votes
1answer
248 views

Why the non-root user can't login with a key in putty? [duplicate]

I read an article and found it very useful: http://www.howtoforge.com/ssh_key_based_logins_putty I made two key pairs for root and the other user. But it only works for root When it comes to the ...
3
votes
2answers
142 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 ...
0
votes
2answers
4k views

Avoid asking password if `su -m user command` is used under `user`?

If I run the script containing su -m user service userservice start under root user, I do not need to enter the password. But when I run it under user user, it asks passwords all the time. That really ...
3
votes
3answers
3k 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 ...
11
votes
4answers
16k views

can we know the password for the other users if we have root access?

If a person has root access to a particular RHEL machine, will they be able to retrieve the password of the other users?
2
votes
2answers
8k views

Restrict FTP user to a directory

Sorry if this is an obvious question, but I don't have a lot of knowledge about this sort of thing, and I've googled for hours, nothing worked. So on a Ubuntu 11.04 server, I want to restrict a user ...
4
votes
1answer
105 views

Where are passwords stored and how are they encrypted in OS X?

I know that on a Linux system passwords are stored in /etc/shadow and are salted and encrypted using a one way hashing algorithm like MD5, SHA-256 or SHA-512. It looks like there is no /etc/shadow ...
7
votes
2answers
249 views

With which user should I run web servers, redis & mongodb?

On this VPS there are three users: root, another_one, nobody. All webserver files, configs, &c. are owned by root. However, I'm in doubt for what regards running things. If I use root for the web ...
2
votes
2answers
635 views

How to set permissions what users can see (drives, folders) on opensuse 12.1?

I have a several users on one machine and its needed to specify which user can access (read & write) specified folders and/or mounted drives. First of all, one user shouldn't see a ...
2
votes
4answers
392 views

delete a system user account if daemon is no longer needed?

In an unusual scenario, I have to get rid of a specific system user account called 'lp' (line printing deamon) on an openSUSE system. Can I just comment out the line for that account in /etc/passwd ...
4
votes
2answers
3k views

Proper way to add a user account via bash script

I cross posted this question to AskUbuntu because my problem seems most acute on Debian/Ubuntu, but it was suggested that I ask here. Whatever method is suggested for solving this problem should work ...
2
votes
1answer
258 views

how to map users and group with sshfs

As you can see below I'm able to map the user from kevcoder00 to kevcoder01 but the group gets mapped to marigold although that group does not exists on kevcoder01 l00py@kevcoder00:~$ sshfs -o ...
0
votes
2answers
62 views

Have rights during shell but not in a script (unless I sudo it)

I have a really basic confusion. How does sudo work? I noticed that when I ran a script it failed, since it tried to write a file in a directory that the following permissions: $ ls -l thedir ...
1
vote
2answers
2k 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?
3
votes
2answers
6k views

Will a users password expire if I set the “maxexpired” to “-1”? [maxage not 0] - AIX

So under AIX 6, according to "lsuser" the user has the following settings: maxexpired=-1 maxage=2 So this means that 2 weeks after the last password update of the user the password will expire, but ...
10
votes
2answers
4k views

What's the difference between a normal user and a system user?

Some documentation I'm going through has a boolean switch on whether or not a user is a 'system' user or a 'normal' user defaulting to 'normal'). What is the difference between these two modes of ...
2
votes
2answers
98 views

Creating a User-less Distro

One of the popular programs I use is GParted, and it has its own custom distro, that boots straight to the desktop, and starts the program. I couldn't find any information on creating such a distro. I ...
5
votes
2answers
565 views

Deleting users with nologin shell

On a security audit performed on our production Linux servers , we were asked to remove nobody user if no application are using it. I checked and could see that there are no files owned by 'nobody' ...
2
votes
2answers
1k views

CentOS can't remove user from group

Asked and answered many times, but I can't get it working!!! (On CentOS) I have the user userA and I want to remove it from group sftponly. #groups userA userA : sftponly #id -Gn userA sftponly ...
6
votes
2answers
20k views

How to add a ssh user who only has permissions to access specific folder?

How to add an ssh user who only has permissions to access specific folder? useradd -d /var/www/xyz.com.tr/musteri -s /bin/bash -g sshd musteri I created a user called musteri. I set its home ...
4
votes
2answers
227 views

Understanding getlogin()

I think the previous iteration of this question was a little bit like a carpet bomb of questions, so that may have turned people off to it (to the point of almost being flagged for removal) so I'll ...
2
votes
3answers
466 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
3k 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
2answers
78 views

How to see Current users on the system

I need a script to identify only and only users ( current users ) on the system and what actions they are performing. I use w , but don't show user's actions that are currently performing ... and PS ...
5
votes
2answers
2k views

Disk usage summary per user

Is there a way to get the disk usage per user under a given path? du doesn't seem to have an option to aggregate disk usage per user, and df only seems to report how much disk is left on the drive. ...
2
votes
2answers
164 views

Linux multi-user system: Each user's home partition on its own Hard Drive

I've got a pogoplug running Arch Linux that I'm using for a NAS with rsync backing up my data over SSH. Right now, I'm the only one using it, but I'd like to add my roommate as well. She has her own ...
4
votes
2answers
5k views

How do I give all the permissions to a file for a single user that's not me?

When I want to grant access to another user to my file, I use chmod 777 file, but if I want to be sure I'm granting permission just for that user, how can I do it? -- update The file is owned by ...
2
votes
4answers
3k views

NIS: How to allow access to both local and remote users' home directories?

We have a NIS server with shared users' home directories in '/home'. We're used to mounting the server's '/home' using '/home' as the mount point on each NIS client. However, if we do this with a ...
1
vote
1answer
125 views

Username conflicts on a central printer queue

We have just switched to a centralized print queue. The printer is setup with lpadmin -p SPScolour -E -D "Sustainable Print Colour" -v lpd://xxx.yyy.com/colour The IT people are saying my local ...
2
votes
1answer
303 views

Should I use useradd or adduser?

I am trying to add a new user to the system. I am confused though which command to run: useradd or adduser?
2
votes
4answers
284 views

Open program as root, close root session but still program is running

When I run my backup script, first I switch to root, mount a truecrypt partition and then run the script. I've noticed that after run truecrypt as root, I can exit the root session and truecrypt ...
5
votes
1answer
906 views

Which home directory should 'nobody' have?

I'm messing around with Tiger security audits on my CentOS box, ensuring the server is fit for being online, well as close as it can get anyway. I noticed a warning about the user nobody having / as ...
4
votes
1answer
2k views

User systemd PulseAudio service

Not much else to this question: I would like to know what I need to create a PulseAudio systemd service to be run with systemd --user. I've tried a few different things, including various user ...
2
votes
1answer
8k views

Changing user and group ID system wide (including file system attributes)?

(this question possibly related to Linux: simulating/masking user ownership upon mount of 'external' partitions? - Stack Overflow) I typically use Ubuntu (currently 11.04) as my desktop OS; let's say ...
2
votes
1answer
250 views

Unable to preserve ownership in a copy but able with a move?

I have noticed that I am unable to preserve ownership if I rsync -o files. However, I am when I move them. This is all without admin privileges. What is the rationale of this? Several threads e.g. ...
5
votes
1answer
2k views

how to keep file owner same for newly created files

This question is regarding samba file access. I have created a folder A, and under folder A created two folders B and C. And also created three users A, B and C. User A has access to all three ...
2
votes
1answer
124 views

Adding a user to a group by default

I have a group that all users on the system share. The group name is common and it is to allow for a universal fileshare for everyone on the machine. How would I make it so that all new users are ...
1
vote
2answers
285 views

Changing username but not home directory

Is it a bad idea to do usermod -l login-name old-name to change my username while leaving my home directory name intact? A few years ago my university changed my username, but since it didn't affect ...
1
vote
1answer
246 views

How to retrieve information about locked accounts

Is it possible to retrieve info regarding to locked unix accouts? I am interested in seeing information about what date and time the lockout happend and from what hostname (pc name). I would like to ...
6
votes
9answers
459 views

What is/are the standard CLI program(s) to manage users and groups?

As the title says, I'm basically asking about user management from the command line (e.g. on a system where there are no graphical tools available). In the past I've used several different programs to ...
1
vote
1answer
208 views

Which user owns X display?

How to determine, as root, which user owns X display :0? (on a Fedora 18 system with defaults)
2
votes
1answer
300 views

bash script - supervisor program

I have to write a shell-script that have to do the following tasks: -in every 5 seconds it saves:     -how many users are using joe and/or vi;     -if ...
2
votes
6answers
918 views

sort ls output by users

On Linux, is there a way to sort ls output by users? What I try to achieve is something like this: user_a   file1 user_a   file2 user_b   another_file user_c   this_file user_c ...
1
vote
3answers
16k views

How can I list all user names on Solaris 10?

I forgot a user that I created on solaris 10, so now I would like to list all user names on my server. Is it possible (I am root user)? What command I should use if possible? Somewhere on the net ...
3
votes
2answers
3k views

How to grant non-root user access to device files

I have device file that appears in /dev when a specific board is plugged in. The read and write operations to it work just fine, but in order to open the device file the program needs to be executed ...
1
vote
2answers
780 views

FreeBSD telnet does not take root login

I have just installed FreeBSD 8.1 as a VMWare host and can establish ipv4 connectivity to the instance and telnet through the virtual console. I have also uncommented the /etc/inetd.conf lines telnet ...
17
votes
2answers
37k views

How can I change a user's default group in Linux?

Being new to Linux administration, I'm a little confused about the following commands: useradd usermod groupadd groupmod I've just finished reading the user administration book in the Linux/Unix ...
4
votes
2answers
99 views

Fully seperate two accounts without installing seperate operating systems?

Our class is finally installing Mint Linux on our machines. The problem is our teacher is scared that we'll play war games against the two classes that use the computers. His solution is to install ...