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.
I do alot of webhosting and I have companys that would like several usernames and passwords to be able to ftp the files to the server, all the users need to be able to add, delete, and modify the files in that directory. In the past when one user would post a file another user in the same group could not modify, or something like that, there always seemed to be odd problem.
My question and it is probably a bad idea but...
Can I have several users with the same uid? I wouldn't have thought of it but I mistakenly made sever users in webmin with the same uid and it didn't crash my system or anything, or will this give me big problems in the future?
In my mind if it is ok to have several users with the same uid there would be no permission problems. Oh and as a sidenote the users only have access to the web so there is no other data to concider.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
if you think about it, it's not really like having several
users with with the same id, it's like have one user
with several passwords(and login names)
the standard way for doing what you want would be to
make a group that those users belong to, and the
default file creation permission mask makes files
rwx to that group. i guess what you want is
permission 775 for those files.
Yes you would want one group, ensure everybody is part of the group and the group has read write permission.
For the directory you would want do this in console:
chown -R user:group /name-of-directory
chmod -R 775 /name-of-directory
This will change permissions on every file in the named directory, give that a shot and everybody part of that group should be able to write to the directory and change files in the directory.
Also doing this way everybodies primary group must be the same. If that is not possible then you might want to run a script for the chown and chmod whenever a new file is placed in the directory. I'm not sure if this is possible I'm not very good at scripts yet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.