Questions tagged [users]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
424 views

monitor multiple users with top

Is it possible to monitor processes of multiple (but not all) users in Linux top? Something of this kind: top -u user1 -u user2 Thank you for your help!
0
votes
1answer
654 views

How to create a single Authentication point with multiple LDAP servers?

I'm currently into a process of creating a central service system from where users can connect to VMs. My goal with this is to have a single point of authentication for all possible users. The issue ...
1
vote
1answer
52 views

Change permissions of users and groups? [closed]

How can I list all users and groups and change their permissions? I try to update Wordpress but my FTP user intranet_admin has not enough permissions and is unable to create a directory. Update ...
-1
votes
1answer
194 views

tmpfs with r/w access for all users anytime

I want to share a tmpfs folder (/mnt/ramdisk) between different users. All users should be able to read/write all files from that folder (just like fat32/fuse/samba) Its particularly useful for ...
0
votes
3answers
80 views

Script to validate home dir

I want to write a simple Bash script which displays the path to the home directory of a user when an actual user name is used as an argument and displays user not found or something when a user name ...
15
votes
3answers
1k views

make all the processes of a given user killable by anyone

On a shared server, I would like to have some very low priority users such that whenever an other user (also without root privileges) needs the resources, they can kill any of the low priority users' ...
0
votes
1answer
49 views

Local user's ID set as system user's ID

I have a to create local user for my web dev, so he will be able to restart Apache, run tomcat, have access to web root files, etc. So far, I have been dealing with such thing by setting his uid as ...
1
vote
2answers
237 views

What is the application of file ownership (chown) in linux?

I have faced a problem in changing the permissions for a specific group of users in my system. suppose I have four users u1,v1 and u2,v2 and two groups g1 and g2. u1,v1 are in g1 group and u2,v2 are ...
0
votes
2answers
2k views

How to add user to a group using bash scripting? [closed]

I am having hard time adding a user to a group in script. For example, I have a script that asks user to answer several questions, and if answers are correct, that user should be added to a certain ...
0
votes
2answers
65 views

User can delete file with read permission only

I created user small, added him to group kek and allowed that group to only read files in user home directory. Then I chowned all files to root:kek. However, small still can delete files in his home ...
0
votes
2answers
179 views

Understanding the difference between user “pi” and root

I bought a raspberry pi so that I can learn Linux, but I'm confused with the users. Is pi the main user or admin? Or is pi and root the same user?
8
votes
4answers
3k views

How does Linux identify users?

I mean, if two users have the same name, how does the system know that they're actually different users when it enforces file permissions? This doubt came to my mind while I was considering to rename ...
0
votes
2answers
246 views

How do I su into another user if the user has no password assigned to it?

I have a user named lap that was set up during install of a service named lap. I have to be logged in as user lap to execute certain functions and to access some directories. I do not have the root ...
1
vote
1answer
786 views

Is it possible to automate clicks with xdotool to control a different GUI session from the one being currently used?

The xdotool command allows us to create scripts controlling the graphical user interface of the system very easily. I can e.g. open my Chrome browser in the following desktop by executing xdotool ...
0
votes
1answer
68 views

Prohibit any interaction with system for user

I'm looking for a way to isolate user from system completely and only allow the user to log-in to system and interact with opened programs. One way I could achieve this is by stripping all ...
0
votes
1answer
112 views

Why do I need a dedicated user for a service (my git service: gogs / gitea)? [duplicate]

I use the "gogs" self-hosted git service, but I want to change to a more active fork called gitea. The installation instructions say I should create a user (e.g. git) dedicated for use by gitea: ...
5
votes
1answer
399 views

First process in a new Linux user namespace needs to call setuid()?

I'm learning about Linux user namespaces and I'm observing a strange behavior which isn't completely clear to me. I've created a range of UIDs in initial user namespaces to which I can map UIDs in ...
0
votes
0answers
106 views

How to configure which characters are allowed in CentOS usernames

In systems such as Debian, there is a file /etc/adduser.conf which includes directive NAME_REGEX that can be used to define which characters are allowed in a username. Is there a way to do this in ...
-3
votes
1answer
72 views

Changing the name of a system user

Have been using command line for a while with research and my coworkers laugh at my system user name.... This is my mother's email address... she bought me the computer around 8 years ago but I am ...
1
vote
2answers
50 views

Privacy as regular user against root?

I need to run a script as a regular user on a remote machine whose root I do not trust. This script outputs very sensitive data to stdout. What steps can I take to ensure only I can read the script’...
1
vote
0answers
1k views

logname: no login name

I am trying to understand the differences between logname and LOGNAME from Difference between logname and $LOGNAME and https://askubuntu.com/questions/490620/difference-between-logname-and-logname On ...
-4
votes
1answer
414 views

unix, adding users to existing directory in centos

I'm trying to add users to an existing directory but I keep getting: useradd: warning: the home directory already exists. Not copying any file from skel directory into it. I want to add users to ...
0
votes
1answer
223 views

How to detect USB insertion and log current user

I need to write a script that logs what user inserted what USB, and sends information to a server. I created a udev rule that runs a python script when it detects a USB insertion. The script writes to ...
2
votes
1answer
67 views

Linux user Hierachy

In short, I want to know if it is possible to create three users: user, lowp0, lowp1 Where someone loged in as user can log into lowp0 or lowp1 without a password, but lowp0 and lowp1 should not be ...
0
votes
0answers
21 views

Allow only rdesktop client on Raspberry Pi

I have an internet connected windows PC thats part of a domain with full controls and restrictions. I have been asked to provide internet connection to another room. There are quite a few ...
0
votes
1answer
376 views

Limiting RAM for a group of users on Ubuntu Machine

I have a gpu based system. Multiple users use the system, as a result, the RAM frequently gets fully utilized leaving no memory for myself. I want to put a maximum RAM limit on all the users except ...
0
votes
2answers
59 views

Printing out users without /home directories and /home directories without users

I need to develop a perl script that will generate a formatted listing of any user without a home directory and any home directory that is not attached to a user. For example, if I used the script ...
2
votes
1answer
922 views

User nobody is logged in on '???'

A transcript of today's session: x@yz:~$ shutdown now User nobody is logged in on ???. Please retry operation after closing inhibitors and logging out other users. Alternatively, ignore inhibitors ...
1
vote
0answers
56 views

Per user priority of access to a file system

Please, let me know if there is a tool, which allows to give different reading (writing) priority to different users on Linux. I am looking for something similar to 'ionice' but able to set I/O ...
-1
votes
2answers
2k views

Why can't I `su postgres`?

I wonder why when I provide root's password, the following command reports failure? $ su postgres Password: su: Authentication failure Is it correct that su asks for the password of root, not of ...
0
votes
3answers
413 views

How to view other users' files? Ubuntu 16.04 [closed]

Can I view files from other users on the same local machine if I am root? If so, how?
5
votes
1answer
613 views

unshare --map-root-user switch to original uid/username after setup

I'm using unshare to create per process mounts, which is working perfectly fine by unshare -m --map-root-user However, after having created my bind-mounts by mount --bind src dst I want to change ...
4
votes
2answers
3k views

How to get NFSv4 idmap working with sec=sys?

I have a Server (Debian) that is serving some folders trough NFS and a Client (Debian) that connects to the NFS Server (With NFSv4) and mounts that exported folder. So far everything is fine, I can ...
0
votes
0answers
19 views

Change permissions for a group that is not the owner of the file

I am part of a group called friends and we have a directory titled secrets. I have a rwx permissions, friends have rx permissions and others have w permissions. I want to explicitly ban members of a ...
2
votes
1answer
1k views

Login incorrect after reboot

After reboot my centos 7 login is not working. I can't login, it always appears "login incorect". I remember that the last significant change I made was in the file "sudoers". I added: username ...
0
votes
1answer
50 views

Modify files between different owners/users; Samba

I need to share a directory to a group and that every user can modify files created by a different owner. For example a document file that needs to be constantly updated by different users. I already ...
1
vote
1answer
518 views

How do I setup user autostart and properly configure systemd user services?

On my arch server, I was setting up users restricted to their home directories. I ran: useradd -m -s /bin/bash username and passwd username I've read this wiki article... I figured I should use ...
2
votes
1answer
178 views

Execute command as a restricted group without entering password

I want to prevent some apps from going to network, so I've created a no-internet group: sudo groupadd -g 9876 no-internet and created a script sudo gedit /usr/bin/ni #!/bin/bash sg no-...
0
votes
1answer
99 views

What's the best, secure way to share some .bashrc source between users and root?

How's the best, secure way to have /root/.bashrc and /home/user/.bashrc include a common .bash.shared file? In other words like this: /root/.bashrc --sources--> .bash.shared <--sources-- /...
1
vote
2answers
468 views

Unable to remove or change files after setfacl rwx-command

With root-user, I've executed this command: setfacl -R -d -m u:MYUSER:rwx /myfolder When I then change to that user ( su MYUSER ) and try to remove a file ( rm /myfolder/somefile.sql then I get the ...
2
votes
1answer
49 views

Grant access for user to folder (even files created after permission is granted)

I have created a backup-user (let's just call it jeremy) on an Ubuntu-server. Then I've created a backup-dir, containing files from several different servers: /backup | |--server1 | |--...
-2
votes
1answer
43 views

directory access permission seemingly inconsistent

I want to grant new users access to a directory owned by root. "ls -lt" returns drw-rw-rw- 74 root root 4096 Mar 21 20:51 dirname My old user can cd into it. However, when I ...
1
vote
1answer
87 views

How to allow any user to log as a non loggable user?

I'm trying to implement the following functionality on Redhat: I have a user "John" that can't be used to login directly via GDM or console or SSH. I want to allow any user that are logged onto the ...
0
votes
2answers
1k views

UID and GID showing root

We have a user account foo that somehow has been tied to root's uid, guid and groups. when i run id foo it returns all the root id info. id foo uid=0(root) gid=0(root) groups=0(root) This user ...
2
votes
2answers
71 views

Why can't regular users create and manage user groups?

I've been wondering if there is a good reason why a regular user can't create their own group. It would make sense for the file owner to be able to set up a group and manage file permissions. For ...
1
vote
1answer
943 views

Forced user password change when login over SSH

I'm planning a setup wherein users can only login to a machine via SSH, but will need their password for sudo commands (to avoid accidents so that there is a 'sanity check' prompt for a password, and ...
1
vote
0answers
45 views

Prevent specific user from altering file they own through directory traversal in shared folder to which they have no write permissions(scenario)?

Bob is the sysadmin. Alice is a user, and boy is she a mess. Bob has set up a shared folder, say /srv/share, with permissions of 775 and ownership belonging to bob:usershares. Alice is not a part ...
2
votes
1answer
651 views

Difference between usermod -L & passwd -l

From man passwd -l, --lock This option is used to lock the password of specified account and it is available to root only. The locking is performed by rendering the ...
1
vote
2answers
196 views

sync password hashes of users UID>1000 between host A and B

I have two CentOS systems, I want to do syncing of password hashes (only) which are stored in /etc/shadow, from system A (local) to system B (remote) but only for these users which have UID > 1000 and ...
4
votes
1answer
570 views

Why 'su user' as root asking for user 's password in my CentOS 7 machine? [closed]

In my CentOS 7 laptop while switching from root to user using su user as root, it's asking for user's password. -bash-4.2# su user Password: While switching from root to other account it's not ...