LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-16-2004, 01:32 AM   #1
SiLiCoN
Member
 
Registered: Sep 2004
Location: India
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84

Rep: Reputation: 16
Multiple UIDS at the same time ?


hi all,
I was just wondering if it is atall possbile to login to multiple uids at the same time. I have access to around 12 different logins in my server and after every couple of minutes i have to change my uid to access different files. So is there a way that i can avoid switching to different uids using "su" coz that takes around half of my time. Also i have to be in just one shell to do all my stuff. So what would really help me is to login to the same shell but having different uids at the same time. (i know that sounds really wierd and i doubt if it is atall possible because the kernel will be confused as to which uid and gid it will set for the new files and stuff like that). Anways - still keeping my fingers crossed hopefully one of the genious around here knows a suitable hack.

Thanks for the help in advance,
SiLi


(Oh yes just forgot to mention, i dont want to work as the r00t user)

Last edited by SiLiCoN; 12-16-2004 at 01:42 AM.
 
Old 12-16-2004, 01:41 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Allowing multiple users to access files is what group ownership is for.
 
Old 12-16-2004, 01:45 AM   #3
SiLiCoN
Member
 
Registered: Sep 2004
Location: India
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84

Original Poster
Rep: Reputation: 16
hi jschiwal,

Thanks for the reply but in that case i ll have to allow group permissions for the all the files which are really risky in some situations coz some other users are also added to the group i belong to and i cant open a new group consisting of just my logins

Thanks
 
Old 12-17-2004, 04:20 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Suppose you have access to 'paul' and 'nancy' accounts. If the group ownerships of their files is 'paul' and 'nancy' respectively, then making yourself a member of the 'paul' and 'nancy' groups will give you access to their files if the group permission bits allow it. It will not give 'paul' or 'nancy' access to your files. ( I am assumming that your default group is not 'paul' or 'nancy' )

Access Control Lists are sometimes used in Linux. SeLinux may be one example. The file systems need to support ACL's however. Using group access control is the method originally designed for Unix.

Just so that you understand, I'm suggesting making yourself a member of the users' groups, not vice-versa. When you create a file, the GID used is that of your default group, and not one of the groups that you made yourself a member of. If you leave a file for someone, you need to use the chgrp command or chown command to give them access, unless you allow it with the 'other' permission read bit.

Note that group access is predicated on whether group access is allowed in the first place.

You can't have multiple UIDs at once. You can access files as the root user, which means being able to access all files.

Last edited by jschiwal; 12-17-2004 at 04:28 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SIDs and UIDs and RIDs! Oh My! (SAMBA) calabash Linux - Networking 0 08-10-2005 07:18 PM
two users with uids of 0 shanenin Linux - Security 2 03-04-2005 09:57 AM
How can I find and change UIDs k2merlinsix Linux - Networking 5 12-28-2004 03:15 PM
multiple sounds at one time zbrox Mandriva 2 04-14-2004 07:51 AM
Help with UIDs please :) gponto18 Linux - Newbie 5 10-22-2002 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration