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.
Hi, i am manageing a system where we have a whole bunch of users.
Their only purpose on the system, is to logon through ssh, and manage their own "html" folder, which contains their website.
1) i was wondering if it could be okey to use a non-unique UID, for future users - in this situation?
2) what are the advantages and disadvantages of useing a non-unique UID?
3) currently, their connect trough a zsh, but would it bear any risk to use (fx.) Bash instead?
4) what is generally the reason for the different shell use?
1) why on earth would you want to??
2) there are no advantages to trying to use the same UID, it's sick and wrong.
3) bash is fine
4) because different shells do different things
1) why on earth would you want to??
2) there are no advantages to trying to use the same UID, it's sick and wrong.
3) bash is fine
4) because different shells do different things
Because while i was makeing a script for adding users, i stumbled over this function (useradd -o), and saw it could ease my work tremendously!
please, i would like to know why its "stick and wrong", i cant really use that response to much - other than you think negative about it - but that doesnt give me any insite on why?
files are not owned by usernames, they are owned by uid's. if you have two users with the same uid they will be the same person when it comes to file access. they will be bale to edit each others files as if they were there own, without any way of stopping it. I really don't see why your work would be eased by this at all. uid's are assigned on a sequential basis, you have no reason to even know what a users uid ever is.
files are not owned by usernames, they are owned by uid's. if you have two users with the same uid they will be the same person when it comes to file access. they will be bale to edit each others files as if they were there own, without any way of stopping it. I really don't see why your work would be eased by this at all. uid's are assigned on a sequential basis, you have no reason to even know what a users uid ever is.
I see, i feel almost stupid now overseeing that.
Tell me more about this "sequential basis", as far a i know, one has to set the UID oneself?
..which is what im finding problematic in my perl script, - that is, generating a nice controlled line of numbers for the UID's.
useradd will just assign the next uid in the range it is configured to do so. normally this is from 500 upwards. only time i've ever manually picked a uid is when i want to have two identical users accessing a common NFS share etc...
useradd will just assign the next uid in the range it is configured to do so. normally this is from 500 upwards. only time i've ever manually picked a uid is when i want to have two identical users accessing a common NFS share etc...
hmm, isnt it possible to enter the range oneself? ive tried looking for it - no luck
/EDIT;
Nevermind, that was a stupid question. Found it in the Man pages (-k option).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.