Questions tagged [users]

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

191 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
5
votes
1answer
706 views

Use network-manager in different netns

In continuation of my last question about using netns as a relugar user, I'm now looking for a way to open VPN tunnels as a regular user. So I naturally thought about network-manager. Any user can ...
5
votes
0answers
2k views

Add a user for Postgres on Mac

I've had a very difficult time trying to set up a postgres database. I am using Mac OS X 10.9.2. I am using this tutorial: http://tutorials.jumpstartlab.com/topics/environment/environment.html The ...
4
votes
0answers
1k views

How could a user log in via tty

I rented this cloud server, and it is kind of attacked recently. I can see a suspicious user logged in via tty. leetom@S152:~$ last -x ayn1 ayn1 tty1 Wed Oct 28 18:59 - ...
4
votes
1answer
592 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 ...
3
votes
0answers
55 views

Can I create a linux server user without creating a complete new account?

I've setup a Webserver with a GIT branching model. Now I want to create something like a technical user on my server. This user should not have an own account (I just need the user to to execute git *,...
3
votes
2answers
2k views

Central user management with multiple servers with SSH keys, LDAP?

the number of my servers and users is growing and I would like to adopt a central database to manage users accounts. I'm thinking about OpenLDAP, but I have a question. Is it possible in LDAP to ...
3
votes
1answer
1k views

Execute commands as another user

I created a user named intelmq which has permissions to run a program called intelmqctl. Then I created a user named apache and I would like apache to execute intelmqctl as the user intelmq. I added ...
3
votes
1answer
141 views

Replace UID with known strings when doing ls and similar commads

When doing commands like LS I get output like this (doing so on NFS mounted remote folder) -rw-r--r--. 1 4016 folderA 23 Mar 31 10:47 soto_file This is perfectly correct and the file was ...
3
votes
0answers
509 views

Pipe audio to another user on the same computer (pulseaudio)

I am running two users at the same time because some games don't like compositing window managers, and you can't turn off compositing in Unity, my favored desktop. I don't want to run two TTYs of the ...
3
votes
0answers
251 views

How to use a separated user with GUI on OpenBSD?

A webbrowser is a GREAT attack vector since people use it to access the "dangerous" internet. Very bad things can come in through to the desktop. So in general for a desktop, we can do the following:...
3
votes
1answer
1k 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
2answers
28k 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
0answers
27 views

Overlapping local and LDAP usernames

We have several RHEL 6/7/8 machines where user authentication is done through LDAP. One of our sysadmins would like to set up local accounts for some users on some machines, with the local username ...
2
votes
0answers
35 views

User listed in group but not in getent passwd

On a specific machine with both local users and LDAP users, there is a user that is listed under getent group foo (let's say the user jdoe is listed), but when doing getent passwd jdoe I get no output....
2
votes
3answers
107 views

Are there any practical reasons for setting a maxlogins limit for users in limits.conf? What are the benefits?

Why should I set a maxlogins limit in /etc/security/limits.conf? In other words, are there any performance-related and security-related benefits to be gained? I have only three users on my machine, ...
2
votes
2answers
205 views

find pid of open tcp port, as a regular user

From local host I'm ssh tunneling some remote host:port to my local host:port, so anybody on a remote host can use their "local" port to access my port via that tunnel. I'm using some regular (non-...
2
votes
2answers
1k views

Disable all USB devices for all users

The Problem Disable all communications on all USB ports for all users (preferably remove power but as I'll point out below I don't think this is possible). I'm currently using Linux Mint 18. What I ...
2
votes
0answers
348 views

Switch-User is not functional on lightdm

On lightdm pressing the Switch User button does nothing. dm-tool switch-to-greeter switches to the greeter, but does not seem to lock my current account. Is there any way to fix this, or even to debug ...
2
votes
0answers
5k views

checkPermissions Missing write access to /usr/local/lib/node_modules

I tried to install the npm install pug, could not because of the permisions, got this: checkPermissions Missing write access to /usr/local/lib/node_modules However im logged in as as root Linards:~ ...
2
votes
1answer
153 views

Ubuntu and web server permissions

I am going to ask a question that has already been posted many times but even though I have read many guides and posts, I still have doubts. I have a server with ubuntu 14.04 on which I have a user ...
2
votes
0answers
306 views

Users in sshfs filesystem, or alternatives

I'm trying to use sshfs as a filesystem with encrypted communication. It mostly works, but I'm having some problems related to users/groups. Since I need any user to be able to access the whole ...
2
votes
0answers
66 views

Listing ALL logged-in users. Also the ones not using a shell

We are working with an application that logs in to a Linux server (Ubuntu server 14.04) and just requests a reverse tunnel. Before we did this with Plink. And when the client was running Plink, I ...
2
votes
0answers
90 views

How to kill all vpns on switch user Mint 17.2

I'm using mint 17.2 cinnamon. I'm not particular about the method, just want it to stop all vpn connections (openvpn, listed in network manager) when I switch users or logout. nmcli doesn't provide ...
2
votes
0answers
285 views

Changed username - Could not update ICE authority file

I tried to change my username by creating another admin account, restarting, then logging into that new account. Then, I entered the following command: sudo usermod -l NewUserName -d /home/...
2
votes
0answers
196 views

Catch/diagnose user process being killed - Inexplicably logged out automatically

Context: I'm using bash in Mac OSX Yosemite. Problem: I'm executing a (python) script that I expect to use alot of resources and take a few hours to run, redirecting stdout and stderr to a log file. ...
2
votes
2answers
537 views

How does one permissibly access files on non-booted system's user's home folder?

I have a dual boot system with Mint 17.1 and Centos 6.6 I want to access a file in my CentOS user's home directory from Mint. (I cannot boot CentOS right now.) What is a clean/standard method for ...
2
votes
0answers
202 views

Is it possible to register “virtual” user/group IDs in a Linux system?

Is there a standardized mechanism in Linux which can be used to tie usernames to user IDs without actually creating a system account that can log in? It would seem something like this is possible, ...
2
votes
0answers
603 views

User Acces restrict to only one folder

I am trying to establsih SFTP User rights at a server to only one folder, following the guidelines here: http://www.esotech.org/resources/software/linux/creating-an-sftp-unix-group-with-chroot-...
2
votes
0answers
400 views

How to set up networking on a per-user basis?

I would like to set up access to corporate VPN for just my user account on my computer; not for the other accounts and certainly not for the guest user. To achieve this, I presume, I need to ...
2
votes
1answer
698 views

How can I investigate what other users are currently logged in?

Since the last few days I get an error message when I try to shut my laptop down: System policy prevents stopping the system when other users are logged in This error message includes a prompt for ...
2
votes
1answer
127 views

SSH'd into a computer, uptime / who / users report 0 users?

I'm ssh'd into a server. Why doesn't the server report it? # uptime 21:54:28 up 13 days, 3:47, 0 users, load average: 1.18, 1.11, 1.13 # users # who I'm not really sure I understand it correctly, ...
2
votes
0answers
307 views

Easiest way to sandbox an user

I'd like to sandbox a user so that they can only read files under /media/shared/somefolder. What's the easiest way to accomplish this? Users/groups? ACL? AppArmor? Some context: Plex Media Server is ...
2
votes
0answers
1k views

How to switch user if the Screen is Lock

Sometime when I have to do something on a server I find that the screen is locked and I don't know the password of that user to unlock it in order to switch the user. So I need to know how to switch ...
2
votes
0answers
380 views

What user installs a .deb package?

I am experiencing a behavior in the installation of a .deb package that I don't really understand. I have a set of "things" in my computer that I deploy to remote computers using a .deb package. I ...
1
vote
0answers
21 views

How to create user who will not be using /etc/passwd for authentication?

I want to add a user to my Ubuntu who will be authenticated using SQLite or another database. I don't want to use /etc/passwd file. How can I achieve it?
1
vote
0answers
31 views

logging for proxycommand

I need to logging users that connected throw bastion host using proxycommand, I have used next command: $ ssh -i ~/.ssh/key.pem user@ip -o "proxycommand ssh -W %h:%p user_bastio@bastion" In ...
1
vote
0answers
35 views

su - <username> hangs if I added a line in /etc/bashrc

I added this line to /etc/bashrc file export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.14/lib I log in as root throw SSH normally, but if I wanted to change my user by su - myusername the ...
1
vote
0answers
47 views

Fedora 29 - Switching to new user using “login” seems to fail

I just installed Fedora 29 (Xfce edition). The uservc was created during installation. I created another user as user2 (with the password: u) from the terminal but I am not able to log in with user2. ...
1
vote
0answers
20 views

How to get notified of a USB plugin and manually specify the driver to use

I am trying to get at the bottom of how to intercept when a USB is plugged in, so that you can completely customize the experience of plugging it in and using it. Without anything else happening. That ...
1
vote
0answers
263 views

whoami returns user, but usermod complains it doesn't exist

I have Linux (Ubuntu) on a VM provided by corporate IT in my organization, and I have a user "myuser". whoami is able to return the username: myuser@host:/home/myuser$ whoami myuser id returns info ...
1
vote
0answers
373 views

How to use service to start/stop app with non-root access?

RHEL 7.5 Currently installed an application as root in /app. As part of administration, application will start/stop using /sbin/chkconfig & /sbin/service utilities All the application binaries ...
1
vote
0answers
77 views

Websocket server won't connect if started via PHP

I have a websocket server written in Node. The following instruction, when executed from the command line starts the websocket server successfully: nohup "/root/.nvm/versions/node/v8.11.1/bin/node" "/...
1
vote
0answers
143 views

ypcat passwd not able to list if the user has 3 digit user id

I am trying to migrate nis server from solaris to redhat(7.5), as per the doc I have exported /etc/passwd and /etc/group from solaris to redhat and made NIS up and running. If my /etc/passwd is e.g.: ...
1
vote
1answer
41 views

Creating samba users as system users

I want to provide access to my machine to a couple of colleagues; However I want these 2 users to be able to access only my shamba share; Is it considered a good practice to add them as system users ...
1
vote
0answers
115 views

Empty User Groups in Terminal Wrapper Applications

As of last Thursday, whenever I use any terminal (Konsole, Gnome Terminal, XFCE Termina, xterm), the groups are empty. $ groups tom When I execute the same command in a tty terminal outside of Xorg, ...
1
vote
0answers
59 views

Add new attribute to IPA user info (Linux)

I am not sure its so straightforward on the Linux side. I want to add a new attribute to identify users as Contractor or Government. Is this recommended or possible within LDAP?
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!
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 ...
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 ...