2
votes
0answers
29 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 ...
4
votes
4answers
223 views

Log out a user and delete the account

I am having a problem on the server (CentOS 6, Plesk 11.5) where a particular user is using a mass mailer and is blacklisting our IP address. I have tried to delete this user using: /usr/sbin/userdel ...
1
vote
1answer
72 views

NFS file owner(uid) = 4294967294, can't do much with my mount, How do I fix this?

I have a somewhat strange setup going on here, I have Android as the client and it's kernel does not support NFSv4, also my /etc/exports file on the server side has no NFSv4 style entries. I am ...
4
votes
3answers
178 views

Is it possible to get uid table in Linux?

I'm a student in a university and I can finger and id all users (students etc) through SSH. Here is the id command e147200@beluga:~$ id e201634 uid=22678(e201634) gid=3561(stat_bs) ...
4
votes
0answers
148 views

Is there a tool(!) to list assigned subuid and subgid values for users?

The question is basically in the title. usermod -v (--add-sub-uids) and usermod -w (--add-sub-gids) can be used to manipulate the subuid and subgid ranges for a user account, but there appears to be ...
1
vote
0answers
18 views

Change the HOME of a user during a graphical session

The other day I had the idea to create display manager independent guest session. My basic idea was to change the login shell to a custom program that creates a temporary home on the fly (f.e. ...
0
votes
5answers
177 views

How can I download all usernames?

I have access to a university's Linux server where all students have accounts. I can retrieve their full name by typing the finger username, and their departments by typing id username. All the ...
1
vote
2answers
48 views

Command to know privileges of a user group

If I run cat /etc/group command or groups username I am able to know the list of groups as group of a particular user. Is there any command through which I could know which type of privileges a ...
1
vote
0answers
44 views

Disable commands for users [duplicate]

I have users that login automatically via ssh to a script I defined instead of a shell. The script basically launches a program which has a shell-escape in it which would allow the user to execute ...
0
votes
1answer
54 views

Creating operating system (OS) user in Oracle LINUX

I am a user with sudo access. To install MySQL, I have to create an operating system (OS) user called MySQL. Can I create a user which also has sudo access on this machine?
1
vote
1answer
94 views

HOWTO check if a user account is blocked against /etc/shadow

After set the Account Expire parameter on /etc/shadow (field #7) to 90 days,I need to know where to look around if an user account is locked down or not after those amount of days. Right now, the ...
1
vote
1answer
44 views

Will having dozens of inactive logins hurt performance

I work on a cluster shared with ~20 users, many of them operating remotely. It's quite common to open the login node, type users and see ~100 users listed, mostly the same user logged in multiple ...
0
votes
3answers
98 views

Switch user on terminal

I'm switching user using command: sudo su - userName On my terminal I always have: user@user directory $ (some command) But when I switch user I have only : $ (some commands) It is hard to ...
2
votes
1answer
22 views

can't change user

I setup vsftp with my ftp users' home directory at /var/www but I realized, it wouldn't let em login by ftp, I tried to connect to 127.0.0.1. So then i wanted to "try out" my ftp user on the shell but ...
0
votes
1answer
143 views

Is it possible to make a standard user that can gain NO access to root?

I'm a very new beginner learning how to use Linux. I have very little experience so far in different distros. I've set Kali Linux as the OS on a remote PC. Users will be connecting to it via SSH and I ...
0
votes
1answer
24 views

Are the crontabs of users linked?

Our Linux server has a community user that has a crontab for itself. The admins don't want me to schedule my scripts on their crontab because they don't want to take responsibility for my programming. ...
1
vote
1answer
318 views

Reverse id command, I want the User/Group Name from the uid or gid

I know some uid and gids that I dont know who they belong to and they are not in /etc/passwd (could be LDAP or from another system). How do I get Id info from only uid or gid preferably without using ...
3
votes
2answers
185 views

How to control the time that users spend on

I need a solution that allows me to control the time that each user spend on the computer, excluding idle time (some kind of parental control). I've tried timekpr, but it doesn't work on Ubuntu 13.10. ...
2
votes
1answer
1k views

Proper way of changing username in Ubuntu or any linux

I am using Ubuntu 12.04 and made some customization. I will also make it a new iso which is customized ubuntu. What I want to ask is how can I change my username. There are plenty much configuration ...
0
votes
1answer
59 views

What part of the Linux kernel determines the execution order of userland apps? [closed]

Stripping the source, I can't pinpoint which part of the kernel sets and manages the userland apps, and how it does it. For example, in the Linux main source, is the procedure have options to set ...
3
votes
4answers
390 views

How do I know a specified user's permissions on Linux with root access?

I have root access to my local server. And some days ago my colleague created a user on that server, giving me the uesrname and password. But the user has a minimized permissions. Like the user can't ...
1
vote
3answers
111 views

Renaming the system users bin and man without doing harm?

In my setup I need to rename the Linux system users man and bin because I need the usernames for humans. I'm using Ubuntu 12.04. I know that I have to change /etc/passwd, /etc/shadow, etc. But when ...
4
votes
2answers
187 views

Understanding getlogin()

I think the previous iteration of this question was a little bit like a carpet bomb of questions, so that may have turned people off to it (to the point of almost being flagged for removal) so I'll ...
-3
votes
2answers
76 views

How to see Current users on the system

I need a script to identify only and only users ( current users ) on the system and what actions they are performing. I use w , but don't show user's actions that are currently performing ... and PS ...
1
vote
4answers
3k views

What type of permissions should a user's home directory and files have?

I'm working with a fresh install of Ubuntu 12.04 and I've just added a new user: useradd -m testuser I thought that the -m flag to create a home directory for users was pretty standard, but now ...
4
votes
1answer
1k views

how to keep file owner same for newly created files

This question is regarding samba file access. I have created a folder A, and under folder A created two folders B and C. And also created three users A, B and C. User A has access to all three ...
2
votes
1answer
111 views

Adding a user to a group by default

I have a group that all users on the system share. The group name is common and it is to allow for a universal fileshare for everyone on the machine. How would I make it so that all new users are ...
3
votes
2answers
2k views

How to grant non-root user access to device files

I have device file that appears in /dev when a specific board is plugged in. The read and write operations to it work just fine, but in order to open the device file the program needs to be executed ...
0
votes
1answer
588 views

Add a new user steps for Oracle Linux 5

It's been over 10 years since I last used RedHat (which I believe that Oracle Linux came from). So I cannot remember the steps to create a new user, add them to the appropriate groups, set up their ...
2
votes
1answer
119 views

What is the source of truth for currently active tty/pts connections?

I'm looking for a simple way to determine the number of currently logged in users, using only the filesystem and basic bash functions (instead of using binaries). The uptime binary appears to be ...
3
votes
3answers
2k views

Whoami: cannot find name for user id 0

When I run whoami it says: whoami: cannot find name for user id 0 My /etc/passwd file looks like this: root::0:0:root:/root:/bin/bash
1
vote
3answers
567 views

Linux Kernel: uid and gid vs /etc/passwd

How does the Linux kernel deal with UIDs and GIDs? When I want to add a user to a system, does the kernel require some type of "registration" for this user (syscall?)? Does the kernel even care about ...
0
votes
1answer
45 views

How to restore the user postgres?

In the second answer in this thread is a warning about changing the UNIX password for "postgres". I have already changed the password for "postgres". How could I restore the initially state of the ...
2
votes
1answer
113 views

Is it possible to log directly into chroot?

Lets say I boot up my computer and I see the login screen. When I log in as myuser, I want to be restricted to a certain root directory via. chroot. Let's assume that the directory is ...
4
votes
1answer
281 views

Linux: Current correct/recommended use of games-group?

What is currently considered the correct/recommended/best-practice use of the games-group... As a "device group" for game-ports and joy-sticks, unassociated with the games-user (except for being one ...
1
vote
1answer
316 views

Can I export an NFS share with faked root privileges

I'm writing software for an embedded linux system and I'm using an NFS share as root directory. The root filesystem resides in /srv/nfs/rootfs, and it is exported using the following /etc/exports: ...
2
votes
1answer
943 views

How to change the username in Ubuntu 10.10?

I want to change a username. In the prompt, which says abhishek@hello$, I want to replace abhishek with alok (i.e. alok@hello$). Is it possible to do that without reinstalling Ubuntu?
5
votes
2answers
466 views

How to disable login for an user?

My Linux has many not-human users like cron, ntp, daemon, http, etc. I want to disable anybody to login as any of this users. Real people on my machine are root and me, so only root and me should be ...
6
votes
1answer
4k views

Group within group file permissions

I tried finding this on here, but couldn't so sorry if it's a duplicate. Say I have 2 groups and a user: group1, group2, user1 with the following structure: group1 is a member of group 2, user1 is a ...
3
votes
1answer
2k views

SSH not landing in the home directory

I have recently installed Raspbian into a Raspberry Pi. As part of the installation process I changed the user name and group from the default (pi) to my own (let's call it user) using usermod and ...
2
votes
1answer
2k views

file system uid and gid in linux

I came across a linux kernel tutorial and there they talked about 4 pairs of identifiers and one of them was file system uid and gid. Could someone explain me what it is and how it is different from ...
2
votes
2answers
121 views

How to generate folder ownership lists for each user?

I'd like to generate several separate lists for each user in Ubuntu. The lists contains the files and folders belong to each user. Using the command following list me all the users in the system: ...
5
votes
1answer
396 views

Is it safe to use /bin/cat as shell for a restricted user?

I need to remontely log on to few peoples machines to do maintanance tasks, but sometimes the machines can be behind firewalls or NAT's. The way I have been doing it is to give the user advice on how ...
0
votes
1answer
183 views

what does 'old' mean in the output of `who -u`?

Title says it all. In the listings of who -u, some of the records show the string "old" in the idle time column. I know that "." means the session is not idle. What's the meaning of "old"? The ...
5
votes
1answer
616 views

Is it possible to find times of past user sessions?

Using the who command, I can find which users are currently logged into a machine. I would like to determine which users have logged into my machine in the past, and the length of those sessions. Is ...
6
votes
2answers
919 views

UID of a deleted account

How can an administrator find the UID of a user that's been deleted with the userdel command?
6
votes
1answer
2k views

How can I do NFSv4 UID mapping across systems with UID mismatches?

I am working in a lab with three Ubuntu systems, and I would like to cross-mount some filesystems via NFS. However, while the systems have some of the same usernames, the UIDs and GIDs don't match, ...
12
votes
3answers
14k views

Which users are allowed to log in via SSH by default?

When I set up my Debian 6, I was wondering, which users apart from root whose password I know can log into my system via SSH? When I install Apache 2 a user called www-data gets created. Does this ...
6
votes
3answers
17k views

How can I look up a username by id in linux?

The command id can be used to look up a user's uid, for example: $ id -u ubuntu 1000 Is there a command to lookup up a username from a uid? I realize this can be done by looking at the /etc/passwd ...
4
votes
3answers
682 views

Extract dates from /etc/shadow

The file /etc/shadow has a couple date fields that are expressed as the number of days since Jan 1, 1970. Is there an easy way using to get a list of users and the calendar date of the last password ...