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

learn more… | top users | synonyms

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 ...
3
votes
3answers
2k views

Whoami: cannot find name for user id 0

When I run whoami it says: whoami: cannot find name for user id 0 My /etc/passwd file looks like this: root::0:0:root:/root:/bin/bash
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
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 ...
6
votes
3answers
2k views

Trouble with dbus and systemd/user

I have systemd set up so that using systemctl start user@me will start my user services as I expect, but my dbus one just won't go (which I need for PulseAudio). Is there some way I can check dbus or ...
1
vote
1answer
53 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 ...
8
votes
5answers
11k views

Can a linux user change their password without knowing the current password?

I'm setting up a few ubuntu boxes, and using opscode's chef as a configuration tool. It would be fairly easy to install public keys for each user on each of these servers, and disable password ...
5
votes
3answers
728 views

How can I create automatically expiring user accounts?

This is what I'd like to be able to do: After a user's account is created, they should be able to ssh-tunnel, but their account is automatically removed after 30 days unless the countdown is reset by ...
1
vote
2answers
65 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
50 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
4answers
2k views

How to configure permissions to allow file access?

I'm running Wowza Media Server on my server as "root". The problem is that all files created (recorded) by Wowza are "root:root" and aren't writable, editable, or deletable by any other users. How can ...
1
vote
1answer
66 views

Is it possible to log in in a host with an user created for programs like apache or postgreSQL?

I am wondering whether is it possible to log in in a computer with users like www-data or postgres as I do with my own user. Are some users "allowed to log in" while others not? Is there any ...
3
votes
2answers
1k 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
113 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
5k 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
20 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
2answers
79 views

How to get the group that a user belongs to in SCO

I can see how to add a user, but is there a way to get information on a user, such as the group that it belongs to?
1
vote
1answer
319 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 ...
0
votes
2answers
398 views

Samba shares - Cannot access with users

I have installed a Samba server on Ubuntu Server 12.04 so I can store files there from my desktop or laptop or whatever. /etc/samba/smb.conf: #======================= Global Settings ...
3
votes
2answers
185 views

How to control the time that users spend on

I need a solution that allows me to control the time that each user spend on the computer, excluding idle time (some kind of parental control). I've tried timekpr, but it doesn't work on Ubuntu 13.10. ...
1
vote
5answers
261 views

Is there some default password for a new user in Linux

I am a Windows user gradually moving towards Linux. In windows we have an option of either having or not having some password for an user.Once we do not put a password we can directly log in to the ...
6
votes
1answer
145 views

How do daemons work?

If a user wants to execute a command, he has to first log in into a system. But some users in the system have /bin/false or /sbin/nologin set as a default shell in the /etc/password file. If I change ...
1
vote
1answer
259 views

The other users: avahi, root, syslog, messagebus,, nobody, ntp, rtkit and whoopsie

What are all these other users (found them with top) when running Ubuntu: avahi, root, syslog, messagebus, nobody, ntp, rtkit and whoopsie. I am aware that whoopsie, for example, is for reporting ...
1
vote
1answer
419 views

How do I change login shell to nologin for an LDAP user RHEL 6?

yum install ypchsh and yum install ldapmodify both don't find a package. I only want to change the shell for certain ldap users on this one server. Someone please help, I can't seem to figure this ...
0
votes
2answers
49 views

Local mail delivery not working

We are using RHEL 6.1 server. We need to send a mail from server to local domain (tcs.com). we are using mail command for this purpose. [bsoauser@hsluabsoa ~]$ echo "hi" | mail -s "test" ...
3
votes
2answers
265 views

Listing users and usergroups in Raspbian

It surprised me no search has led me to a such simple question like this one. All I want is to get a list of users and usergroups (whatever the second thing actually is). I've found many text about ...
2
votes
2answers
2k views

How to change file owner in AIX?

How can I change a owner of a file in AIX? I created a file using my personal account and then I tried to change user for this file: chown rootuser myfile.csv chown: myfile.csv: Operation not ...
2
votes
2answers
85 views

Configure external HDD for use with multiple linux PCs

I've got an external drive, and I'd like to have a linux partition on it. I formatted everything correctly on one machine with Fedora20 (I have one ntfs and one ext4 partition), but when I plug it in ...
3
votes
1answer
235 views

How to properly setup user/groups/permissions for a web server?

I spent all day figuring this out, but without success, so hopefully I can get some help here: I have Ubuntu 13.10 VPS server with nginx, PHP 5 and MariaDB installed. I created custom system user ...
0
votes
1answer
142 views

Why can my gentoo systemd installation only execute files as root?

If I try to login as any other user, via su it says 'permission denied'. If I use su -l it says 'canot cd to /home/<user>'. Logging in via the tty just kicks anyone without a message out except ...
0
votes
1answer
124 views

How to make a Torrent client keep the same torrent data for multiple users?

I'm running Linux Mint with two user accounts. One account has admin priviliges while another is a normal account. If I start a torrent download in admin account I want that to continue even in the ...
5
votes
1answer
247 views

Whta does '\+::::::/bin/bash' in /etc/passwd mean?

Found the line \+::::::/bin/bash in my /etc/passwd, which looks strange to me. What does that mean? Has my computer been hacked?
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 ...
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 ...
1
vote
1answer
197 views

Granting permission for all users in a group to write to a directory and all its subdirectories

Trying out Linode for the first time, running an Arch Linux image, I successfully installed nginx as root. This, however, made /usr/share/nginx/html inaccessible to non-root users. Intuitively, I ...
1
vote
2answers
145 views

How to determine what user was used to start Apache Tomcat last (or last few times)

On a Mac, or a Linux Tomcat install, how do I determine what user was used last to start Tomcat? Is there information in the logs somewhere to that effect? Assume that startup.sh and shutdown.sh are ...
1
vote
4answers
737 views

Is it possible to “hide” an account from /etc/passwd?

A typical Linux system has not only accounts for the actual user(s) of the system, but also various system accounts. Is there any file like /etc/passwd for daemons, or other means resources where an ...
3
votes
2answers
207 views

What is the proper solution to a web server trying to write to a directory?

So, I have a box with a "deploy" user. This deploy user owns a code repository and wordpress is running on this box... When wordpress attempts to do something like upload a plugin, it is using the ...
3
votes
1answer
53 views

Restrict emails to system users in postfix?

I am running postfix, and it seems it is willing to accept emails for system users, such as man, sshd, daemon, www-data, ... Is desirable (probably not)? and what I can do to disable this?
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
3answers
149 views

Owner of init and xterm

I don't understand what is owner of process. Owner of bash is me. Then who is owner of init and xterm? I searched on google but I can't find.
2
votes
2answers
81 views

Changing username still leaves old traces

I changed my username about a month ago, and although I have forgotten the specificities of how I had done so, I'm pretty sure I followed the instructions on the Arch Wiki. Since then, some programs, ...
5
votes
2answers
218 views

Create a computer lab using Linux [closed]

I would like to know, how I can create my own Linux lab, like the universities Linux labs. I mean OK, I can install for example Fedora to all my 4 PCs, but how I can login from different computers, ...
0
votes
3answers
136 views

How to restrict one user files to another user

On my machine there are user accounts. My question is how to restrict access to ones user files. Meaning no one else can access my files at all. How can I setup this restriction? How many root users ...
2
votes
2answers
107 views

Convert numeric string from file to exit code in shell

I'd like to grep /etc/password for a username and return the last two digits of a user-id number as the return code. This is because I have an application whose main way of interacting with other ...
6
votes
3answers
140 views

Passwords for newly created users?

I am fairly new to Linux and I have question regarding users. When I use the useradd command I don't specify a password. I must use the passwd command afterwards. Does this mean that the user is ...
4
votes
3answers
174 views

restrict student account permissions, give faculty access

I have set up two user groups, students and faculty on Ubuntu 12.04 and created a number of students and faculty accounts. The problem is a student can currently see & read all of the files of a ...
1
vote
2answers
111 views

Wrong number of logged in users using “w”

There was a temporary network glitch and all user terminal ssh sessions were broken. Upon logging in to the CentOS server again and running the "w" command lists a higher number of users logged in ...
2
votes
1answer
131 views

With NIS users, how to find out which users are currently logged in?

I'm using a NIS server to control 100 clients. I'm using NIS for centralized authentication and NFS to share the home directory. The main problem I'm facing is that I cannot find out which users are ...