Questions tagged [users]
Anything related with user accounts and user management on Unix-like systems.
1,536
questions
0
votes
0
answers
27
views
User suddenly changed to nobody, and is restored when changing permission to a file
I was learning about git internals, doing basic commands, when suddenly I encountered this error: fatal: detected dubious ownership in repository at... I then noticed that the user is nobody. I have ...
0
votes
2
answers
41
views
Anyone know what these all these user sessions (see post) might be?
Any time I login to my laptop, including after freshly booting my laptop there are four user sessions already. Only the "who" command can see all four, the "w" command can only ...
0
votes
2
answers
68
views
Letting a stranger in safely
I have setup a really tiny wireguard server in my home, with my public IP and all. I have used NAT to hopefully protect myself as much as possible, set strong passwords... All these things.
A friend ...
1
vote
0
answers
36
views
How to log into a Linux virtual machine when its root user is expired and reason being failed to change password
I created a Ubuntu 18.04.6 LTS VM on vSphere. Created a user, test. VM is a 1-year-old machine. Now when I am trying to log in ( through PuTTY), I can't. I checked the logs it says that the "...
0
votes
0
answers
18
views
How can I specify a gid range in a sudoers Runas_Alias specification?
How do I allow some_user to run some_command as users with group ids comprised between 2000 and 2999 in a sudoers file ? Is it possible to specify a range of gids instead of a list in a Runas_Spec ?
...
0
votes
0
answers
19
views
I created new group and added users into the group but the users are not able to create any file or directory
[![those are the users][1]][1]
the error was showing like permission denied
[1]: https://i.stack.imgur.com/UgVBS.png
1
vote
2
answers
39
views
Can two linux users share .ssh folder keys to connect to an SSH server
I have two linux users
user1 - regular account with auth key stored in /home/user1/.ssh/
user2 - service account without home directory
How can user2 access user1's keys to connect to the remote ...
1
vote
2
answers
63
views
Proper way to give permissions to a program
At work there is a "system" (python) agent that needs to perform actions with higher level privileges (adding ip route, setup wifi profile, reading from serial devices), but also be able to ...
0
votes
0
answers
39
views
Difference between chage -I and passwd -i
I'm looking into ways to read and write expiry dates for temporary passwords (i.e.: If we grant users a temporary password and they don't log in and change the temporary password within N days, then ...
0
votes
0
answers
43
views
Mount home partition after login
I am looking for a way to set up a Linux box where I would have a user's home folder reside on a separate encrypted password-protected partition (perhaps using LUKS? Not sure what the current best ...
0
votes
0
answers
37
views
How can I force linux to limit the amount of time I play "games" on it per day, that would be protected from root override?
Problem:
Struggling with video game addiction.
https://www.reddit.com/r/Steam/comments/v0wj7i/is_there_a_way_to_limit_gaming_time/ Virtually no existing ways to limit gaming, outside therapy.
I need ...
0
votes
0
answers
25
views
Why doesn't openSUSE GUI allow one letter usernames during first install?
I burned the openSUSE Tumbleweed iso on USB and plugged it into a laptop to try it out. I ran the gui installer. When asked to choose a username I typed q in the username. However I was unable to ...
0
votes
1
answer
69
views
Can I add users by simply adding new entries in /etc/passwd
I am adding a new node to my small "cluster". I would like the new node to have exactly the same accounts (for human users) on it. I tried to copy the human user entries from other node to ...
0
votes
4
answers
62
views
listing existing users sorted by date of creation using cut command
ASK: to use cut command to list all users to confirm a successful useradd.
ISSUE: The list was very long and I had to scroll through output to find user.
NEED: Sort by the date the user was created. ...
0
votes
0
answers
55
views
best way to create a non sudo "guest" user with access only to specific applications/services/libraries in ubuntu 18.04
I installed Ubuntu 18.04 with two user accounts:
admin (member of sudo group, initial installed user)
guest (not member of sudo group), it's home directory mounted on a separate partition.
I wish to ...
0
votes
1
answer
122
views
Cannot log into user account on LightDM nor TTY
After fixing pacman using a live USB installation, something peculiar occurred.
When I attempt to log into my user account on the LightDM login screen, it informs me that I have entered the wrong ...
0
votes
1
answer
76
views
What's the difference between account expiry(inactive) and account becoming locked?
Source: https://linuxopsys.com/topics/chage-command-in-linux
The image is taken from the book Linux with Operating System Concepts.
What I don't understand here is that what is -E option?
Is it the ...
1
vote
1
answer
158
views
Are 4755 permissions safe for usr/lib/dbus-1.0/dbus-daemon-launch-helper?
I somehow messed up the permissions of many files on my Ubuntu 22.04.2 LTS system (privately used computer, not a server), which has already caused a couple of problems. Recently, I noticed that I ...
0
votes
2
answers
44
views
Run part of command line command with sudo
I execute this
time sudo nice -n -20 bash myscript.sh
myscript.sh then processes some files as well as create files with the result.
Two problems with this:
the script is run as root
the resulting ...
-1
votes
1
answer
154
views
default user privileges, root and sudo/admin/wheel groups on ubuntu18.04
I installed Ubuntu 18.04 and noticed a few things:
My default user (the one configures right after installation) belongs to sudo group with the following permissions: ALL=(ALL:ALL) ALL
My root user ...
0
votes
1
answer
73
views
Restrict write access of executable
I'm creating a file system manager that has extensions for automatic creation of projects, ...
The filesystem executable should only be able to edit or remove files in /home/USER/00_Files
I created a ...
0
votes
1
answer
30
views
How can I privilage a user to sign in on my ubuntu server via ssh when a system shutdown is scheduled?
I have scheduled a system reboot every night in my crontab with this line:
0 4 * * * /sbin/shutdown -r +5
I would like to be able to log in and cancel the reboot if I need the system to stay up at ...
1
vote
2
answers
355
views
I am Unable to access to root user in oracle linux server
I was configuring Ansible on my server where I created an Ansible user on all servers and gave them sudo access so whenever I ssh to another server using an Ansible user it should not ask me for a ...
0
votes
0
answers
103
views
sshd log verbose filter out specific user
I would to filter out one specific user that very often connect to my servers via sshd.
I no more want to see into ssh's logs the connexion of this user.
Is it possible to do that ? to keep the actual ...
3
votes
1
answer
384
views
how to access linux data from another machine physically?
My laptop is failing, but I know for sure the hard drive is okay and fine.
I want to take the data inside it, I connect my laptop's hard drive (open suse tumbleweed with btrfs filesystem) to my ...
1
vote
1
answer
54
views
Some users (groups) cannot be deleted when using NIS to manage users in CentOS 7.5 cluster
The cluster master and computing nodes are using CentOS Linux release 7.5.1804 (Core). File /etc/nsswitch.conf contains
passwd: files nis sss
shadow: files nis sss
group: files nis sss
The output of ...
0
votes
2
answers
831
views
Which user does systemd start services as?
I'd like to learn about how systemd starts services, specifically which user the service is started as, and I'd like to use Jenkins running on my Linux PC as an example.
I know that init is pid 1, the ...
1
vote
0
answers
51
views
Best practices for file and directory permissions in a multi-user environment
This is my situation in an experimental environment.
A php script is creating files in a target directory when it's executed from Apache via web request.
It runs as www-data user, the created files ...
0
votes
1
answer
384
views
Why are there non-system users snap_daemon and snapd-range-524287-root with same rights as root user?
Who are snap_daemon and snapd-range-524287-root users, I didn't add, as shown in /etc/passwd, added as regular root users ( by snapd program? by Canonical ), who have the same sudo rights as my root ...
0
votes
1
answer
46
views
I have modified my /etc/sudoers to execute any command with out a password but it didn't work and it still prompted a password request
Question
I have modified my /etc/sudoers (by visudo) to allow myself to execute any command with out a password but it didn't work.
All of similar questions don't work for me.
I still have to input my ...
1
vote
0
answers
19
views
Is there a way to start a service to create new user before the login prompt appears if there are not users using systemd?
I intend to create a new user before the getty login prompt appears (when there is not existing users)
Basically, the adduser command can be triggered from a script that will be started before the ...
1
vote
0
answers
32
views
Command “W” shows that my TTY and FROM are both “tty2”
I use dual boot windows and Ubuntu on a thinkpad T14 and in my terminal (in the Ubuntu graphical interface) command w shows that my TTY and FROM are both tty2 not sure how this is possible
I ...
0
votes
0
answers
27
views
File permissions by default different when created by different user
beginner here
I used root privileges to create a new user in Red Hat Enterprise Linux called john and a group called myfriends. I then added john to that group. I also created a folder /home/myfriends ...
1
vote
1
answer
150
views
How to let user can only read files?
I have some new files to release every day.
My coworker needs to sftp/scp to my Linux server to copy these files.
I don't want him to do any file delete/move/execution...etc, the only thing he can do ...
0
votes
2
answers
43
views
Get user's login duration time without time of locked screen
I'd like to get information about "utilization time" of users on linux sytems for specific days. This means the time, an user has an unlocked screen. In contrast the command ac displays the ...
-3
votes
1
answer
221
views
Tried to change my username, now the user isn't at the log in options
I was trying to change my username. I oppened the terminal and if I remember correctly I used
sudo /etc/shadow
and
sudo /etc/passwd
Then i saw it didn't change, so I made a temporary user, logged in ...
0
votes
1
answer
370
views
How do I switch users with their groups groups in Python?
How do I switch to an admin-user account from this python script named root_and_user.py that was run with doas or sudo?
#!/usr/bin/env python3
from os import geteuid, seteuid
from subprocess import ...
0
votes
0
answers
31
views
Adding file-user in shell-script
I'm trying to add users with code like this:
asadmin start-domain
asadmin create-file-user --groups=user --target=server-config -authrealmname=file --passwordfile=password.txt a
asadmin create-file-...
0
votes
2
answers
251
views
ansible copy ssh keys to multiple users' home directory
I have ssh keypair on my ansible_host, which I want to copy to multiple user's authorized keys on target host.
I'm trying with-item construct, but it complaints about .pub key not an invalid key
here'...
1
vote
2
answers
49
views
Can you assign a host user to an application within a virtual machine?
As I was reading the Android Developer Guides, I was confronted with the following statements:
The Android operating system is a multi-user Linux system in which each app is a different user.
Each ...
0
votes
0
answers
318
views
How to run multiple instances of one app in linux?
I want to run multiple instances of Viber on Linux.
I used Sandboxie on Windows and it was very easy, I could create multiple profiles for multiple accounts. But on Linux I cant find an alternative ...
0
votes
1
answer
189
views
"Other users are logged in" how does the system know? Where is the information leaking?
(Example screenshot taken from https://askubuntu.com/questions/1343872/ubuntu-shows-other-users-are-logged-in-whenever-i-shut-down-even-though-i-am-the)
But my question is: how does the system know ...
3
votes
1
answer
127
views
What is the purpose of systemd's /run/user/UID/inaccessible/?
What is the purpose of /run/user/<UID>/inaccessible/? There are two device special files therein, namely blk and chr with major device number 0, so these are dummies. But what for?
I tried to ...
1
vote
1
answer
431
views
Ask password at login on Linux Mint Cinnamon
When I installed Linux Mint Cinnamon on my machine the first time, I checked the box saying something like don't ask for password when logging in.
Now I would like to revert this option, but I can't ...
0
votes
1
answer
281
views
Cannot login to CentOS7
I was trying to set the environment in .bashrc and I might change something incorrectly, now I cannot login as either common user or root.
I use centos gui in my PC, when I enter the password the ...
0
votes
2
answers
59
views
Can I let users create an account on their own?
I teach a programming course with over 40 students. I want them to upload their projects to a Linux web server that I rent. So I want each student to create a user account on the server. I do not want ...
0
votes
1
answer
31
views
Typically, which file users (owners) come with a distro?
Typically, after installing a distro we get a root user and a sudo user.
I don't know if these are typically the only users owning files (as a user/u or "owner"), are they? or are there ...
0
votes
1
answer
48
views
How to create user for the current session only in Linux?
Is it possible to create a user without writing to the /etc/passwd file, so that the user only exists in the memory? adduser doesn't have an option for doing this. I don't think this is possible from ...
0
votes
0
answers
122
views
How to switch nodes within a Kubernetes cluster using a Linux bash terminal?
I did follow this link to install Kubernetes. Now I noticed that my terminal shows:
a@worker01:
in front of each line, that isn't what it was before I follow the instructions. It seems the terminal ...
-1
votes
1
answer
116
views
Need help to delete user from multiple servers at once using bash script, "deluser" command not found
I have multiple servers whose IPs are stored in a text file. All I want to do is access all hosts through ssh and delete the specific user from all hosts simultaneously.
Note: All listed IPs have the ...