- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- UID & GID
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 04:12 AM
тАО10-24-2001 04:12 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 04:16 AM
тАО10-24-2001 04:16 AM
SolutionGroupid (GID) is a number assigned to a user, and usually a group of users will share this number, which can be found in /etc/group. In /etc/passwd, you actually have both a UID and a GID. Now a user can belong to many groups.
It allows the system to have something to base security rules on.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 05:01 AM
тАО10-24-2001 05:01 AM
Re: UID & GID
username : passwd : UID : GID : description : home directory : login shell
in /etc/group:
groupname : passwd : group number : usernames separated by commas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 06:07 AM
тАО10-24-2001 06:07 AM
Re: UID & GID
/etc/passwd file contains
the username->uid mappings.
It also contains the Groupid
to which the user belongs.
The Groupid->groupname mapping
is in the /etc/group file.
The userid is assigned by
the system, when a user is
created, as per the serial order. BUT, we have the
choice of assigning a specific
user id , during its creation.
We can also change the userid
of a user at any time. (but
one has to be careful in doing this).
We also have the choice of
assigning the group(s) to
which a user belongs during
creation or at any time.
A user can belong to more than
one group.
Userful commands related to
Userid/groupid is
""id"" , ""usermod""
""useradd"" ""userdel""
If you would like to dive
deeper, look at man inode.
Inode is the system structure
which holds the details of
the file.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 07:25 AM
тАО10-24-2001 07:25 AM
Re: UID & GID
-rwxrwxrwx 2 root sys 96 Dec 4 2000 myfile
shows us that it (r)ead, (w)rite and e(x)ecutable for user, group and everyone, while
-rwxr-x--- 2 root sys 96 Dec 4 2000 myfile
shows us that it (r)ead, (w)rite and e(x)ecutable for user, (r)ead and e(x)ecutable group and no permissions for everyone.
Cheers,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 07:37 AM
тАО10-24-2001 07:37 AM
Re: UID & GID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 08:19 AM
тАО10-24-2001 08:19 AM
Re: UID & GID
eg If I have the file:
-rwx------ dave sys foobar
Only the user dave (or root) can access the file.
If the permissions are:
----rwx--- dave sys foobar
Only the members of the group sys (or root) can access the file.
If the permission are:
-------rwx dave sys foobar
Only users who *aren't* a member of sys or dave can access the file
There are some special cases:
1. root can access everything.
2. As the owner of a file, even if you don't have permissions on the file you can still alter the file.
Directories are a special cases to the above, for each of owner, group, others the rwx means:
r - can read contents of directory
w - can create or delete files within the directory
x - can go into the directory
just to confuse you :-)
dav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2001 08:32 AM
тАО10-24-2001 08:32 AM
Re: UID & GID
I believe you'll find that other permissions really give permissions to everyone. For example, a file with ------rw- (chmod 006) permissions can be written to by anyone regardless of their id or group.
Darrell