Questions tagged [users]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
2k views

Can't connect to LDAP accounts with lightdm

I made a fresh install of Linux Mint 18.3 and then established a connection to my LDAP server. I can see the list of LDAP users with getent passwd. The strange thing is that, when I boot, the start up ...
1
vote
1answer
82 views

Unknown user seen when listing tar file

I have here a POSIX tar archive call Debian9.ova. Interestingly enough, listing it with tar in MacOS High Sierra, shows: $ tar -tvf Debian9.ova -rw-r--r-- 0 someone someone 5344 26 Feb 13:57 ...
0
votes
1answer
130 views

Trying to run a program in /root/ by other user by adding it to path [duplicate]

Specifically, I am using conda command part of Miniconda distribution. It happens that the installer put files in /root/miniconda3/. The problem is that /root/miniconda3/bin is in path, but the ...
4
votes
1answer
3k views

getent passwd -s sss LOCALUSER shows local user

tl;dr I want to easily and quickly tell if a user is local or domain (don't care which domain). Environment freeipa-client-4.6.1-3.fc27.x86_64 sssd-1.16.0-4.fc27.x86_64 Full story I am writing a ...
2
votes
1answer
108 views

Is it safe to delete SSH user accounts?

This is my first question on here and I hope it doesn't sound too ridiculous and I am posting it in the right place. I have a Magento store running on Linux server. I am running two stores (Magento 1 ...
0
votes
1answer
145 views

Why login with user created with useradd command in Debian has no enviroment set? [closed]

I started to learn linux and I came a cross problem I would like to ask. After I use useradd command in debian, I get new user with home directory. I check that directories from /etc/skel are copied ...
0
votes
1answer
157 views

DenyUsers userid@host issue in sshd_config

In order to restrict shared users moving around environments, I implemented DenyUsers userID@host. But this is working only on few hosts. There are some hosts where I implemented the same in ...
0
votes
1answer
256 views

File in /usr/local/bin can't be seen by some users

I'm installing Wordpress CLI from the official instructions, logged in as a user with sudo permissions on a VPS, Centos Server with cloud linux: Download the WP-CLI tool from Github with the ...
-1
votes
1answer
802 views

Account locked after adding line on /etc/passwd file

I have installed this version of Ubuntu on my laptop. └─ $ ▶ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: ...
3
votes
1answer
276 views

Restrict clipboard for untrusted X11 clients

I've came across this blog https://notehub.org/rp5n2 which describes a way to make certain X11 clients untrusted[1], which makes certain X11 extensions unavailable to them. Note that I know perfectly ...
1
vote
0answers
40 views

Need to log out to enact change to sudo group?

I'm on Linux Mint 18. I'm writing a program which temporarily removes the current admin user from the sudo group. The intention is to use this program in conjunction with others to be able to ...
4
votes
1answer
168 views

Give a user privileges to switch process UID, GID

I'm writing an application that create worker processes run under other users credential. This program works under root. However, I want to run it under a less privileged account. Is there any way I ...
1
vote
3answers
49 views

linux + how to verify user is in group? [duplicate]

how to verify that new user was added to group? example by this syntax I will add the user dog to group - white_house_group usermod -a -G white_house_group dog after that , how to verify that ...
2
votes
1answer
58 views

How to retrieve permissions of a user

I need to discover which are the permissions of a user in a CentOS system. Is it possible to find which are the directories the user can access and the command he can execute? It doesn't refer to ACL'...
0
votes
1answer
46 views

Give access to a folder for a specific person using email

I have a processing machine that is running on Linux and is used by many people. This machine has only one user where people using this machine can login and use the machine. What I wanted to do is to ...
3
votes
1answer
14k views

sudo access vs wheel group

I am just a little bit confused here. When you are asked to give a user sudo access to the machine. Should I just add the user to the wheel group. # usermod -aG wheel bob Or let's say there is no ...
0
votes
1answer
63 views

Know original user id from the sudo users activity

Suppose i am a user of linux box : A I also have an access to application account in the box and I sudo it : B Somebody else who is a user C also sudo to: B Question: When the user C copies or ...
1
vote
1answer
20 views

Changing terminal user

I got a laptop where user1 as already there, now I created user2 and deleted user1, still when I am opening terminal it shows: user2@user1:~$ I want to make it like this: user2@user2:~$ How can I ...
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 ...
0
votes
2answers
573 views

Command to reboot machine when no users are logged in?

Is there a command to reboot a machine whenever the next time that there are no current users logged in occur? Currently, I have to SSH to machines and use the "w" command to see the users logged in ...
1
vote
0answers
141 views

Lock user using PAM

I was testing on RHEL 6.9 how to lock user after number tries. I followed the RHEL security guide to lock users after 3 failed attempts. I edited two files: password-auth and system-auth. Even ...
1
vote
2answers
59 views

The user `ldl` is exists in the root group, but when I use `groups root` check it, do not shows the `ldl` user

The user ldl is exists in the root group, but when I use groups root check it, do not shows the ldl user. [root@localhost Qiyun02]# usermod -g root ldl [root@localhost Qiyun02]# groups root root : ...
0
votes
2answers
120 views

What user does apt-get install software under?

I just installed some software using apt-get, and its owner and group is "logger". Since I installed the software using sudo, why isn't the owner and group "root"? I am pretty sure about a year ago, ...
0
votes
1answer
109 views

Why does the group need --x permission on the parent directory?

I was trying to get the user nagios to have access a sub directory in another users home directory /home/alert/NagiosAlerts/. I was going crazy setting permissions that should have been to high to ...
0
votes
1answer
2k views

How to export a full list of users in Samba Active Directory?

I have an Active Directory running on Samba 4.6.3, on a server with Debian Jessie. On a Windows 7 PC (AD client) I installed the RSAT and from there I manage the server using an administrator account, ...
0
votes
1answer
53 views

How to have a certain user inherit all file permissions from another user as if they were the owner

I just switched to Fedora 27 and was wondering if what I want is possible. I want a certain user to inherit all permissions from another user (Meaning: Being able to access files as if I were the ...
0
votes
2answers
624 views

Can I userdel a user without removing their home directory?

I did the following: useradd -d /home/iauser -m -s /bin/bash -c "IA User" iauser got this error: UX: useradd: ERROR: Create home directory failed. Operation not applicable It created an entry in ...
4
votes
1answer
11k views

How can I get the list of ldap users without being sudo? [duplicate]

I have non-sudo ssh access to a server of which I want to know the list of users, I think the server is using ldap because: -bash-4.2$ cat /etc/nsswitch.conf # /etc/nsswitch.conf # # Example ...
1
vote
1answer
2k views

Will the primary group of a user be deleted when you delete the user?

I have created a user called paul using the following command: sudo adduser paul adduser also created a new group called paul and made it the primary group for the user paul. I have created a file ...
0
votes
1answer
46 views

How to replace the user IDs and group IDs with names instead of numbers in “ps”?

The following command will list the effective user ID and the effective group ID of each process: ps -o pid,euid,egid But the IDs will be listed as numbers, for example: PID EUID EGID 123 1000 ...
-1
votes
1answer
11k views

Getting “Permission denied” even though I have set global read permissions on a file

I'm using Amazon Linux. I have set global read permissions on a file, but I can't seem to access it as a normal user: [myuser@mymachine ~]$ ls -al /usr/java/jboss/standalone/deployments/myproject.war/...
1
vote
0answers
23 views

Program is being executed differently

I'm executin Sublime Text 3 by terminal on GNOME like so: # subl and I execute the program by the left tab in GNOME too. <-- there. The same program. But I'm getting different settings. In a ...
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-...
1
vote
1answer
884 views

SSSD delete users

It is my first question on the forum, so please, don't be mad if I miss important information about my issue. I use Debian 8 and I joined an Active Directory domain (Windows server 2012) with SSSD ...
1
vote
1answer
514 views

How does android implement run-as without setuid

Earlier versions of Android have at run-as executable with the setuid flag set so it runs as root, but more recent versions do away with that. What changed? How can the shell user effect a user change?...
1
vote
2answers
1k views

How to check who can su to my user

I have lot of users and sudoers is set based on groups. Is there a way I can check which user can su to my user? Like : sudo su - myuser I tried grep my /etc/group file, but it’s not giving me the ...
16
votes
3answers
5k views

Can't log in because I forgot my user name

My friend had put Linux Mint 17.3 Cinnamon 64 bit on my computer. Well, I forgot the user name, so I did a search on the Net for "forgot username linux" and came here. I got the suggestion to hit '...
1
vote
1answer
44 views

Files permission - problem with an exception to grant to specific user

As part of an exercice at my University, we need to do the following task: Respect the «least Privileges» rule. Create 5 users groups, each one has its own folder (G1 => Folder_G1) Grant user ...
1
vote
1answer
3k views

id and whoami commands shows different user

Recently, I've noticed a strange thing, and I'm asking you to explain such behavior. # Ok, I logged in as root # Am I root? Sure. ╭─root@s1 ~ ╰─# whoami && id root uid=0(root) gid=0(root) ...
0
votes
1answer
148 views

Can I have two users with the same name but different UID's?

I have a server that I use for playing around with. I want to set up an email account that is @.com, but the way that SquirrelMail and the mail server is set up, the home folder for the username has ...
1
vote
1answer
589 views

Cron shell ignores runuser command - why?

I have two bash scripts. One runs as root, and it calls another one as user "parallels" /root/cronrun.sh #! /bin/bash PARR="thisparameter" echo "Starting at `date`" >> /root/rlog.log runuser ...
1
vote
1answer
3k views

Unable to add myself to the docker group [closed]

I confirmed that the docker group exists $ grep -i docker /etc/group docker:x:130: but when i tried usermod -aG docker, I got the usage output $ sudo usermod -aG docker Usage: usermod [options] ...
2
votes
1answer
595 views

How to delete one of two users with the same name?

While trying to install Hadoop I created two users, one with the same name than the usual user. I want to get rid of it without deleting the one I'm usually using. Do you know how to do it ? Here is ...
-2
votes
4answers
176 views

How can I remove hundreds of users generated by a script?

I had previously created a bash script that created over 100 users using output from a password generator as usernames. So far, the closest solution I have come across is creating a list of users to ...
2
votes
1answer
50 views

How to control the access to the directory?

help with the question. There is a server on CentOS 7, it has a bunch of users, each has its own projects. Some users have subprojects on which other users work, the structure is approximately this: / ...
1
vote
1answer
75 views

Prevent users from changing group of their own files

I'm writing a set of scripts to provision game servers. I have each game server being installed as a separate user, so that they're all isolated and can't access each other's files. The daemon/...
9
votes
2answers
1k views

Can a process have an owner? What does it mean?

We can determine the owner of a process by using the ps command. Does this mean that other users cannot run / kill / resume that process?
2
votes
2answers
111 views

How do I hide a user that is logged into the server, from other users

If I and another person where logged onto a server (a Debian server to be exact) and I wanted to prevent the other user or even other user from seeing that I am active and logged into the server, how ...
1
vote
0answers
284 views

Accidentally moved root into home directory [closed]

I accidently moved root into my home/user folder without really doing anything...I don't quite know how this has happened!! How on earth can this happen with the permissions on root?? I've now been ...
1
vote
3answers
65 views

how to verify users are in group

we add the following user to the group white_house kuku , trump , karter usermod -a -G white_house kuku usermod -a -G white_house trump usermod -a -G white_house karter as all know we can verify ...