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

learn more… | top users | synonyms

1
vote
2answers
54 views

Command to know privileges of a user group

If I run cat /etc/group command or groups username I am able to know the list of groups as group of a particular user. Is there any command through which I could know which type of privileges a ...
0
votes
2answers
71 views

How do I log in as non-interactive user? (e.g. mysql)

I need to run a command mysql_upgrade which, when ran as root, returns Looking for 'mysql' as: mysql Looking for 'mysqlcheck' as: mysqlcheck Running 'mysqlcheck' with connection arguments: ...
0
votes
2answers
436 views

Bash script to remove user

I need to create a Bash script to remove a user. We use RHEL version 4, 5, & 6. Lets say usernames are Ray4 & Ray6 & the script name is deal. Specific tasks for this script are: Does the ...
1
vote
1answer
56 views

user accessing and permission denied

I had a user john in fedora 19 usergroup marygroup useradd -g marygroup mary usermod -a -G marygroup john In John terminal: cd /home/mary Permission denied cd /home ls -l drwx------. 11 john ...
1
vote
0answers
27 views

How to block the user for a certain amount of time

Suppose, I am working in X environment, and I want to have an obligatory periodic rest. Is it possible to setup a root cron job, that will block my user for 5 minutes every 45 minutes? I am using ...
1
vote
0answers
44 views

Disable commands for users [duplicate]

I have users that login automatically via ssh to a script I defined instead of a shell. The script basically launches a program which has a shell-escape in it which would allow the user to execute ...
4
votes
1answer
367 views

Use different username by default for a specific host

I have a different (assigned, non-changable) username on one of the servers I log to regularly, and I would like to avoid writing it down every time. Can I make these lines [tohecz@localhost ~]$ ssh ...
7
votes
3answers
429 views

Why is konsole reading /etc/passwd?

In relation to this question: While observing the behavior of fatrace, I notice something which concerns me. Here are the first few lines of output of the command "fatrace|grep konsole" ...
0
votes
1answer
71 views

Creating operating system (OS) user in Oracle LINUX

I am a user with sudo access. To install MySQL, I have to create an operating system (OS) user called MySQL. Can I create a user which also has sudo access on this machine?
6
votes
1answer
92 views

What are the side effects of having several UNIX users share one UID?

The sys-apps/shadow package on my GNU / Linux system comes with a useradd command that supports an option that I have previously overlooked: --non-unique. For the sake of convenience when shellig home ...
2
votes
1answer
52 views

office 2007 under wine: available for all user accounts?

I have succesfully installed office 2007 using Wine under 1 account on my parents computer (which now runs on linux mint 13 LTS XFCE). I installed it under 1 account and normally, when you do this in ...
1
vote
1answer
110 views

HOWTO check if a user account is blocked against /etc/shadow

After set the Account Expire parameter on /etc/shadow (field #7) to 90 days,I need to know where to look around if an user account is locked down or not after those amount of days. Right now, the ...
-1
votes
1answer
80 views

What can I do if I got locked out by cphulk?

Is there any way in Linux to create another user with root rights? I got locked out by cphulk and I need some other way to log in. Notice many ways to fix this involve logging in to root or whm. ...
1
vote
1answer
420 views

Create ssh user which can only access home directory [duplicate]

I read documentation on the internet on how to create a new user with SSH access. I figured it out and to create a user is quite simple. The next step I want to take is to jail this ssh server to the ...
1
vote
1answer
44 views

Will having dozens of inactive logins hurt performance

I work on a cluster shared with ~20 users, many of them operating remotely. It's quite common to open the login node, type users and see ~100 users listed, mostly the same user logged in multiple ...
6
votes
0answers
361 views
+100

User permissions inside and outside of LXC containers?

I'm running some services inside of Docker LXC containers on my server and I'm beginning to actually do serious things with them. One thing I'm not clear on is how user permissions work inside and ...
0
votes
0answers
33 views

Is it possible to edit the '$' or '#' symbols for users? [duplicate]

What file needs to receive edits in order to make such adjustments?
1
vote
1answer
56 views

What is `plan` for users?

Sometimes, I use finger - and I can't help but notice that when I specify a user: finger admin - The last thing the output says is: No Plan. What does that mean? Where can I find out more about ...
0
votes
3answers
103 views

Switch user on terminal

I'm switching user using command: sudo su - userName On my terminal I always have: user@user directory $ (some command) But when I switch user I have only : $ (some commands) It is hard to ...
3
votes
2answers
55 views

Why are newly created users assigned to primary groups of their usernames?

I've noticed that on a number of linux distributions that whenever a new user is created, it is assigned to a primary group of its own name. eg. If i create a user called "testuser", by default it is ...
3
votes
1answer
162 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: ...
0
votes
0answers
43 views

Tracking user CPU hours

I am looking to work out which users on our system are using the most CPU resources. to check this? So I would like to find out: CPU-hours this month, (and % of total) CPU hours this week, (and % ...
20
votes
1answer
2k views

What does adduser do that useradd doesn't?

In addition to the more widespread useradd, Debian based systems also contain an additional adduser command which provides a higher level interface for adding users and some related tasks. There are ...
0
votes
1answer
400 views

Switch User won't work in Xfce

I'm trying to do Switch User in action buttons but gets me following error : Unable to start new display GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ...
6
votes
4answers
321 views

How to only zip the files of a specific user?

I like zip, it's simple, but recently I came with the need of only zipping the file owned by one user in a directory. I read the manual and I can't find any option to for example do things like: ...
1
vote
2answers
253 views

I can not log into Ubuntu 12.04

by ignorance and error I renamed the user_name of the directory /home/, called frank_account (home/frank_account) to sixven(/home/sixven) (using gksudo nautilus). Restarting Ubuntu, I get 3 users: ...
2
votes
0answers
60 views

gnome “switch user” shortcut or command line

Is it possible to switch user of gnome desktop environment by single command or any shortcut key, in centos 6.0, or Can we create shortcut key? I found "fusa", but still unable to install it.
3
votes
1answer
182 views

/home/user: change directory failed error

I just installed Arch reading from the Beginners' Guide on the Arch Wiki. Once I rebooted Arch, I logged into root then I added my own personal account: useradd fox then passwd fox and set my password ...
0
votes
3answers
29 views

Set the default permission

When I create a file, the permission is 644 (user rw, group r, other r). How can I make the default file generated to have permission as 664?
1
vote
0answers
124 views

How is a username determined and can I hide the domain component in a winbind username?

Someone asked a question on Server Fault about a problem which I'm also having but no one has answered it so I'm posing a slightly different question to try and figure it out myself. I've configured ...
0
votes
3answers
132 views

Can sudo to user but 'run command as' is denied?

I was wondering how to run a command as another user from a script without password. sudo -l return: (root) NOPASSWD: /bin/su - someuser There is no problem to sudo as someuser. Command sudo su - ...
-1
votes
1answer
39 views

How to enable someone to SSH to my server from Windows? [closed]

I want someone from windows to log in into my server using SSH, so he can edit files and install things. Is there a step to step how to do it? I need to: Create his user account. Configure it, ...
0
votes
2answers
739 views

vsftp user authentication problems

I configured my ftp user's home dir to /var/www and set a password but I cannot login with ftp 127.0.0.1, it keep giving me 530 Login incorrect. Why is this? I'm sure I have typed the password right. ...
2
votes
1answer
24 views

can't change user

I setup vsftp with my ftp users' home directory at /var/www but I realized, it wouldn't let em login by ftp, I tried to connect to 127.0.0.1. So then i wanted to "try out" my ftp user on the shell but ...
1
vote
1answer
65 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
0answers
23 views

How to allow user to only rsync/download only one directory through SSH [duplicate]

What I want to do is to give to user a simple script to run, that will sync some directory from my VPS to their machine, authentication would be done by using pubkey, and I would like to have control ...
4
votes
1answer
143 views

How come each program or service has an account of its own in /etc/passwd?

I checked out the /etc/passwd file and I'm surprised to see that there are 35 different accounts, even though I'm the only user on this computer. I see that the accounts have names like mail, news, ...
1
vote
2answers
31 views

Backup server users creation

I have a RHEL server which acts as the web server for all the users (around 1000 users). Now, I have a backup script which backs up the data (all data inside /home folder) into an external HDD. This ...
0
votes
1answer
49 views

How do I change user to uid/gid 760?

I requested creation of new user (so that all processes by particular program could be owned by this user). Our admin told me that this new user has uid/gid 760. Please, how do I switch to this ...
0
votes
1answer
162 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 ...
4
votes
2answers
281 views

Allow user1 to “su - user2” without password

I need to allow user martin to switch to user martin-test without password su - martin-test I think this can be configured in /etc/pam.d/su. There are already some lines in that file which can be ...
1
vote
1answer
54 views

How do I identify the user that is attempting to create a file?

I have a PHP script that is attempting to create a file, but it can not because of permissions. I would like to identify which user the system sees as the one requesting to create the file. I would ...
1
vote
2answers
66 views

Creating a user valid for a given time period? [duplicate]

I wan to create a user on Ubuntu valid for 10 min. How can I do that if it's possible?
2
votes
1answer
54 views

tftpd runs as root, despite explicit option “--user tftp”

I start my tftp server with the option --user tftp so that it runs as user tftp instead of root. However, ps shows that the process still runs as root ps aux| grep tftp root 2542 0.0 0.0 ...
3
votes
2answers
2k views

How to change default shell to ZSH - chsh says “invalid shell”

I installed ZSH on a VM of mine, where I compiled it from source. The location of ZSH is /usr/local/bin/zsh when I run chsh -s /usr/local/bin/zsh it outputs chsh: /usr/local/bin/zsh is an invalid ...
2
votes
0answers
123 views

What are the default openSUSE 13.1 user groups?

I just installed openSUSE 13.1, and I can't even start X on boot. I have to switch to another tty and type startx (after I set suid for xorg). On top of this, I can barely do anything without root ...
0
votes
1answer
24 views

Are the crontabs of users linked?

Our Linux server has a community user that has a crontab for itself. The admins don't want me to schedule my scripts on their crontab because they don't want to take responsibility for my programming. ...
1
vote
1answer
8k views

How can I create an SFTP user in CentOS?

I'd like to give temporary SFTP access to a support guy. How do I create an SFTP user? And how can I delete it once the job is done? Also, how do I specify a home directory for them? Can I prevent ...
0
votes
0answers
21 views

Run Xdotool on multiple users at once

When running Xdotool on user one (cron): * * * * * export DISPLAY=:0 && xdotool mousemove 10 10 and I switch to user two for several hours, and back to user one, I find out Xdotool not ...
1
vote
1answer
427 views

Reverse id command, I want the User/Group Name from the uid or gid

I know some uid and gids that I dont know who they belong to and they are not in /etc/passwd (could be LDAP or from another system). How do I get Id info from only uid or gid preferably without using ...