Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84
Rep:
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)
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84
Original Poster
Rep:
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.