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

learn more… | top users | synonyms

0
votes
1answer
7 views

How to give a particular use's privileges to another user in Debian?

Lets say in my Debian PC have 2 users called cat and dog. I want to use sudo setup to give dog's privileges to cat. So cat can do what dogs do. I'm new to sudo stuff but I tried below config. It ...
0
votes
1answer
21 views

adding a sudoer in debian

After a long search on the web, trying everything I can find I came to ask you guys, how can I add an existing user to be a sudoer? I've tried usermod -a -G sudo user and also adduser user ...
1
vote
3answers
216 views

Hide ones command history from other users on a Linux server

When I log in via ssh on a Linux(Ubuntu) server, I notice that all the bash commands executed by other users on the server are saved in the command history. Is there a way that could allow me to hide ...
0
votes
0answers
17 views

Another El Capitan permissions issue

Been to the depths of the web trying to repair my Mac HD and Home folder permissions. I would like to get back to default setup without losing user data. Any and all help is appreciated. Can't run ...
0
votes
2answers
55 views

How to add users from data in a text file

I am a beginner in linux. I have a question about creating multiple users in linux, but I need a program to work on it. There is a new users txt file, the content is following: adams:5000:Adams, John ...
3
votes
1answer
32 views

Why are folders in home directory (Documents, Pictures, etc) created only after the first graphical login?

I am learning Red Hat Enterprise Linux 7. After creating users as root, if I login as the new user using "su - username", there are no directories in the user's home directory . Once I login as the ...
0
votes
0answers
10 views

What will be the result when USERGROUPS_ENAB is set to no in /etc/login.defs and no groupname is specified when using the commnd useradd

The default command when we add a user is: sudo adduser -m -g initial_group -G additional_group -s login_shell user_name In /etc/login.defs USERGROUPS_ENAB is set to yes by default This means ...
0
votes
1answer
78 views

Difference between sudo user and root user [closed]

The /etc/sudoers file lists which users can do what with the sudo command The root user creates and modifies the /etc/sudoers file. This concept is difficult for me to understand. If all users ...
3
votes
1answer
39 views

Questions about sudo

I have a couple of questions on using sudo: Give Ben sudo access to the machine Give Tim sudo access to the following tool : iptables For (1) I just address Ben to the sudo group. So I did: ...
1
vote
0answers
13 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 ...
0
votes
1answer
32 views

Cleanest way to require the user to enter password to run a program?

What is the cleanest way to require the user to enter password in order to run a particular program without the use of third-party applications? For example, if I type firefox to launch it from the ...
1
vote
0answers
28 views

Missing or disappear home directory

Today I turn on my computer and I get many problems fsck with nodes after (Initramfs), this happened to me before so I run the following command fsck /dev/sda1 -y now running this command ...
1
vote
1answer
41 views

How to :Autorun scriptshell after user log-in

I am writing a program in java programming language on Raspberry pi. As you know Raspberry pi is working on Rasbian Unix based OS. I have created my java fx gui application and set it to myscript ...
1
vote
0answers
17 views

Migrate by disk usage

How to migrate home directories all of users which have disk usage greater than 1MB to mounted disk /home2. New directories can look like /home2/login. I have mounted disk i need to know only how to ...
71
votes
5answers
10k views

Why can't Linux usernames begin with numbers?

Is there a technical reason why? Is this an artifact from the early days of Linux or Unix, and if so is there a reason why it persists?
2
votes
1answer
49 views

UID mapping in NFS

Can anyone let me know how can I map a UID 162 to UID 107. Files in my nfs are getting created with ownership 162:162 but on my local machine the userid for that specific user is 107 so I need to map ...
3
votes
2answers
44 views

How much memory is a specific user using

Is it possible to find out how much memory I am using on a multiuser linux machine? I want to know whether I am using a lot of memory and possibly inconveniencing others, so I can shut down my ...
-2
votes
1answer
42 views

View which users exist on a remote computer?

If I have the IP address of a computer running Linux is it possible to see which user accounts exist on that computer, without having to ssh into it first?
1
vote
1answer
27 views

Globally writable files and user-based process jailing

I want to be able to generically pick a certain executable (potentially malicious) x and run it (from an admin account) with write access restricted to certain directories (dynamically deduced) "${...
0
votes
0answers
14 views

Account expiration gets updated automatically in linux

I am trying to disable user account expiration for one of the users in linux. Below is the command I used: sudo chage -m 0 -M 99999 -I -1 -E -1 cits user1@host-01:~$ sudo chage -l cits Last password ...
1
vote
0answers
14 views

PHP running as root on Apache2 running as daemon

On one of my servers, Apache2 is running as daemon user: [root@sbecby07 ~]# ps -ef | grep httpd root 1114 29432 0 10:13 pts/2 00:00:00 grep httpd root 29773 1 0 09:03 ? 00:00:...
1
vote
5answers
59 views

tar without preserving user [duplicate]

I'd like to compress some files for http distribution, but found that .tar.gz keeps the user name and user ID and there doesn't seem to be any way to not do that? (There is a --numeric-owner option ...
1
vote
1answer
26 views

Difference between users listed under home directory and those not

I see some of the users I can find under /home directory in centos but not rest of the users. Users that are listed under /home directory, I can login as those users with command su username To ...
-6
votes
1answer
26 views

Important files to be backup [closed]

I need to know what is the most important files to be backup in Linux server.
3
votes
1answer
47 views

Unable to change username (“user <olduser> is currently used by process <number>”)

I already read this, but it hasn't helped. Not having logged in to the 'olduser', I type sudo usermod -l 'newuser' 'olduser' and it yields the error message from the title of my question. What can I ...
9
votes
3answers
268 views

Set-uid executable and resulting process user

In Ubuntu 14.04, the passwd executable is -rwsr-xr-x 1 root root 47032 gen 27 01:50 /usr/bin/passwd and the ping executable is -rwsr-xr-x 1 root root 44168 mag 7 2014 /bin/ping so (for both) ...
-1
votes
2answers
75 views

Creating a user without a password on NetBSD

On my NetBSD installation, I have it set so that root has no password. I can login as root without typing a password. But, when I create a user with just useradd -m <username>, log out, then ...
0
votes
0answers
31 views

How to run application with user created by package-manager

I'm packaging a binary application, and for permission issues decided the best approach would be for my package to create it's own user/group. I'm now using a postinst script, adding the user as: ...
0
votes
0answers
39 views

Restrict Users to their home directory

I use WebMin/ProFTPD on my CentOS7 VPS. I already checked the proftpd.conf and it contains the line: DefaultRoot ~ !adm But when I create a new user they can access all on the server from the root. ...
2
votes
2answers
62 views

When opening a terminal does not require a login?

Speaking about Linux and in particular Ubuntu (from 14.04) systems: Case 1 - As pointed out in this answer, processes that allocate a pseudo-terminal don't need to make a login: for example, cups. ...
5
votes
2answers
60 views

Change user id and group id ownership of files within a tarball?

I have a tarball and the files it contains do not have the right user and group ownership. Files are owned jenkins:jenkins and I'd like them to be owned naftuli:othergroup. Is there a way for me to ...
1
vote
0answers
44 views

How to reduce the bandwidth using squid proxy delay pools

I have a LAN with user PCs that managed by linux squid proxy server. IP ranges : User1 category: 192.168.1.2-192.168.1.12 User2 category: 192.168.1.13-192.168.1.23 User3 category: 192.168.1.24-192....
0
votes
1answer
41 views

Process login vs user login

In a Ubuntu 14.04 system, who has the following output: user1 :0 2016-05-02 14:49 (:0) user1 pts/4 2016-05-02 15:10 (:0) So apparently just the pts/4 is used. But, for example, ...
-1
votes
1answer
22 views

Have I missed anything? user1 is not in the sudoers file [duplicate]

I've created a user on a server where there was only root as: # adduser user1 with a password. Then # su - user1 And then: $ apt-get update E: Could not open lock file /var/lib/apt/lists/lock - ...
0
votes
0answers
24 views

Need to fix user access on centos

I screwed up user permission for my account "yann" on a centos 7 server. I would like to have that user to access rw on all folder under /home to manage the webserver folders. Each top level folder ...
3
votes
1answer
51 views

How to get number of opened file descriptors for user

I know about lsof and ls /proc/*/fd but none of them are atomic AFAIK. Because in the latter case I would need to get all pids for user and then filter by them and by that time some of the file ...
1
vote
1answer
43 views

dconf fails when running X application from alternate user

In an effort to protect my personal files in my home directory, I am trying to run certain applications as an alternate user, but under the same graphical environment. I have enabled X permissions by ...
0
votes
0answers
17 views

What does 'addgroup' do compared to 'groupadd' [duplicate]

I am new to Linux and have started using Ubuntu. One thing I am having issues with is adding users due to the lack of easy to find information on the subject. I have noticed that there are two ...
0
votes
1answer
34 views

What's the difference between lpasswd and passwd commands?

Studying the CentOS/RHEL sysadmin manual, I can't understand if there are or what are the differences between these commands.
0
votes
2answers
41 views

Should I create should my own user with less privileges on a server (Digit. Ocean)?

I'm trying to deploy a website at Digital Ocean. I have the user root as the default. However, since it's root I believe I should create my own, normal user, shouldn't I? Nonetheless, in the ...
1
vote
1answer
15 views

Error while logging in to a NIS server using the desktop GUI

When trying to login to a user account on an openSUSE based NIS server on a local network I receive the error message Cannot enter home directory. Using /. The following is the console error message ...
0
votes
0answers
49 views

Authentication required to edit Sudoers - User not listed

I made a small typo in my sudoers file, nothing a simple pkexec can't fix. The problem is that when I added my user with "adduser name" and added "name" to visudo, as well as the root and sudo groups:...
2
votes
2answers
30 views

User Admin - View Permissions when 750 is used for home

apologies if this question is caused by a fundamental misunderstanding. But as main admin of a server: I want to make it so that users cant see each others home folders. (so I chmod 750 the home ...
-1
votes
1answer
47 views

Create a restricted user on Ubuntu

I need to grant guest SSH access to some user to review our server. He could: access only /opt/www/ folder (and subfolders) can list folders but can't read files content can't edit/create files ...
3
votes
2answers
73 views

Primary and secondary groups

So I've got the basics of primary and secondary groups down, but still have some questions I can't seem to find solid answers to: Can many users belong to the same primary group? Can one user's ...
0
votes
1answer
28 views

Moderate users homedirs - removing cleartext passwords [closed]

On one of Linux terminals I administrate, we allow users to write own scripts in bash/perl/python to enhance their administrative tasks. The problem with users is they don't always follow the rules. ...
3
votes
1answer
218 views

Add user and set password using Ansible

I have created an Ansible playbook to create user and set password. But it is giving me an error ERROR: password is not a legal parameter of an Ansible Play Can someone help me with this? --- - ...
1
vote
5answers
55 views

Show a user exists command

Is there a command that shows a user exists and is assigned to a group? I have just used the command usermod -a -G [GROUP] [NAME OF USER] and assigned a user to a group but, I was wondering if there ...
-1
votes
1answer
204 views

pulseaudio run as root

I have Ubuntu 12.04 installed on my PC, recently I have edited /etc/passwd and changed user1:x:00:00:user1,,,:/home/user1:/bin/bash to give root permission to user1 and the system always need to ...
0
votes
1answer
55 views

How to enter a user account and run commands from a shell script being run as root?

I am presently writing an automated install script for Arch Linux, to simplify the install process for myself (in case my current installation of Arch goes belly up and I can't fix it myself), but the ...