Questions tagged [gid]
21 questions
5
votes
1 answer
Assignment of UID and GID from Active Directory
My CentOS 7 machine has successfully joined a domain FOOBAR (as verified by realm list) and here's the information about an user coming from the AD (non-local):
[root@centos7 ~]# id [email protected]
uid=5631533([email protected])…
dr_
- 28,763
- 21
- 89
- 133
3
votes
1 answer
How to Specify Group Owner During Cron
I've done a fair amount of research but either I'm having trouble formulating the context to create relevant results or the information is hard to find.
I have a production ubuntu 16.04 server attached to a domain with SSSD. When a cronjob runs in…
apln
- 51
- 3
2
votes
0 answers
Sync LDAP groups and UIDs with Active Directory
Currently, our organization has a working OpenLDAP server that we use to login to our Linux environments. However, due to the increase in Windows devices, the higher-ups have decided to migrate to an AD-focused environment. We are currently trying…
Qiangong2
- 121
- 1
- 4
1
vote
0 answers
ssh_host_[algorithm]_key group owner changed after OS restoration
I've this weird problem which I can't find an answer. Recently I restored a linux machine (RHEL 7.3) from the OS tar archives. Steps taken are as below:
Create OS related filesystems tar archives, store in NFS
Create a new VM, start with Cent OS…
bongsf
- 11
- 1
1
vote
0 answers
Start NFS server without UID and GID of Unix directory
I'm trying to set up a NFS Server on Windows to map a folder of a Unix system connected to the same network.
The second step in the tutorial How to set up a free NFS server on Windows 10 (sections 4 and 5) says to edit a registry by adding the UID…
Vlad Iordache
- 111
- 1
1
vote
0 answers
I don’t have read permissions on a file but I can read it
I have a file owned by a different user with permissions 440. When I do ‘groups’ I don’t belong to the group of the file, but when I do ‘groups my_username’ I do.
Why am I able to open the file if my current shell does not have access to the group?
Shock-o-lot
- 11
- 1
1
vote
0 answers
Change the GID of an existing process
Is it possible - for a privileged process - to change the GID of another process. I know that there is the setgroups() system call that allows a process to change it's own GID. However, I want to do this from 'outside' the process (and after the PAM…
PraMiD
- 11
- 1
1
vote
1 answer
change UID and GID file attributes on read only file system with mount
I have some file image of filesystem, and I want mount it with parameter changing files and directories UID and GID. I cannot change its parameters, because it is read-only filesystem.
I found some idea, using some overlayfs and by find command walk…
Znik
- 639
- 1
- 8
- 15
1
vote
1 answer
Directory owned by a group that doesn't exist?
I'm witnessing a a directory which has for group owner "1002" ...
However I do not have any group with such ID (verified with getent group | grep 1002 ).
Even history | grep groupadd gave nothing.
Where could that be coming from.
Any '100x' group ID…
Torof
- 207
- 3
- 7
1
vote
1 answer
Write a script that accepts group numbers (GIDs) as parameters
I'm trying to write a script that accepts group numbers (GID) as parameters. The parameters can be any number. The task of the script is to calculate and display the number of users belonging to the given groups (based on the /etc/passwd file). The…
Johny N
- 11
- 1
0
votes
0 answers
Changing GID on login
I have a system for which SSS is configured to use LDAP. A user will appear on my system as, say
# id abc
uid=1234(abc) gid=1010(default) groups=20001(red),20002(blue)
If I can determine through some mechanism, that the person should have red as…
loris
- 195
- 1
- 11
0
votes
3 answers
Which command should I use as root to spawn a process with overridden numeric uid/gid/groups?
Which command (available in distro repositories) should I use start a shell with specified numeric uid, gid and groups? Typically su is used to change from root to other user, but it tries to look up groups by names, which may not exist when…
Vi.
- 5,528
- 7
- 34
- 68
0
votes
2 answers
How to pick a static group id?
I am tasked with reassigning a static group id (gid) to an existing group name that exists on multiple Linux servers.
E.g. the group name foo currently exists on multiple servers, but with different gids:
$ ssh server-1
$ getent group…
StoneThrow
- 1,575
- 5
- 19
- 41
0
votes
0 answers
undo usermod for root?
At some point where I wanted to do
sudo usermod -v 1000-1000 USER
sudo usermod -w 1000-1000 USER
I accidentally applied both these commands to root.
According to the documentation I can undo these commands by using the same options in capitals, but…
alle_meije
- 559
- 2
- 5
- 16
0
votes
1 answer
Is there any file/directory permission effect if change uid or gid on Linux?
If group and user's settings are
group name: group1
gid: 2000
user name: user1
uid: 2000
Some directory's permission is
Directory: /application
Owner: user1
Group: group1
When change the gid and uid to 2001, is there any permission issue for the…
Miantian
- 103
- 2