Questions tagged [users]

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

Filter by
Sorted by
Tagged with
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 ...
username's user avatar
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 ...
natS's user avatar
  • 3
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 ...
Orsu's user avatar
  • 109
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 "...
Dhruv Bhatnagar's user avatar
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 ? ...
reyjul's user avatar
  • 1
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
krishna's user avatar
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 ...
try.aaam's user avatar
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 ...
ffolkes's user avatar
  • 11
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 ...
MrArsGravis's user avatar
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 ...
Ruslan's user avatar
  • 101
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 ...
Anon's user avatar
  • 215
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 ...
kix448526's user avatar
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 ...
x.y.z liu's user avatar
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. ...
VintageDroid's user avatar
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 ...
hutcruchi's user avatar
  • 189
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 ...
Post Self's user avatar
  • 251
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 ...
achhainsan's user avatar
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 ...
LololoTheGreat's user avatar
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 ...
d-b's user avatar
  • 1,713
-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 ...
hutcruchi's user avatar
  • 189
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 ...
Simon Van den Bossche's user avatar
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 ...
Cedric Lindenau's user avatar
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 ...
user21824488's user avatar
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 ...
Peutre's user avatar
  • 77
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 ...
buncis's user avatar
  • 133
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 ...
Jzsb's user avatar
  • 21
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 ...
StoneThrow's user avatar
  • 1,585
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 ...
puck's user avatar
  • 111
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 ...
CuriousPanda's user avatar
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 ...
BreakingLead's user avatar
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 ...
user568753's user avatar
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 ...
Owen's user avatar
  • 11
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 ...
daniel's user avatar
  • 1
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 ...
Mark K's user avatar
  • 789
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 ...
Richard's user avatar
-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 ...
eddington's user avatar
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 ...
John Smith's user avatar
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-...
Albert Albatros's user avatar
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'...
Sollosa's user avatar
  • 1,889
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 ...
Mehdi Charife's user avatar
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 ...
linuxn00b23's user avatar
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 ...
kylex's user avatar
  • 15
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 ...
countermode's user avatar
  • 7,383
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 ...
Liuk23's user avatar
  • 23
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 ...
Siyao's user avatar
  • 1
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 ...
Erel Segal-Halevi's user avatar
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 ...
alfred's user avatar
  • 7
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 ...
Samuel Ammonius STUDENT's user avatar
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 ...
best_of_man's user avatar
-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 ...
Saugat Nepal's user avatar

1
2 3 4 5
31