TWiki
>
CF Web
>
Accounts
>
LocalLinuxAccounts
(2016-06-14,
AdrianPepper
)
(raw view)
E
dit
A
ttach
---+ Local Linux Accounts ---++ Adding users with a UW userid When creating accounts on a linux machine, we typically use the "adduser" command (in Ubuntu/Debian distributions). If you simply use the command "adduser username" it will create the account with a locally generated uid and gid matching the name and create a home directory. However, if we want to make sure that the uid and gid match the CS core for future possible compatibility, do the following (let's assume the userid is "imauser"): 1) Get the uid from the Math/CS idregistry (on cs-xh-admin.cs.private.uwaterloo.ca): * =ssh cs-xh-admin.cs.private.uwaterloo.ca= * =idregistry Request Type=User imauser= * --> =imauser:91754= 2) Get the gid from the Math/CS idregistry: * =idregistry Request Type=Group imauser= * --> =imauser:7155= 3) Add the required group name on the Linux system where you want the account, using the gid found in step 2: * =# addgroup --gid 7155 imauser= 4) Run the "adduser" command on the Linux system where you want the account, using the uid and gid found in steps 1 and 2: * =# adduser --uid 91754 --gid 7155 imauser= <pre> Adding user `imauser' ... Adding new user `imauser' (91754) with group `imauser' ... Creating home directory `/home/imauser' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for imauser Enter the new value, or press ENTER for the default Full Name []: Ima User Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] </pre> ---++ Adding users without a UW userid
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r3 - 2016-06-14
-
AdrianPepper
CF
Information in this area is meant for use by CSCF staff and is not official documentation, but anybody who is interested is welcome to use it if they find it useful.
CF Web
CF Web Home
Changes
Index
Search
Administration
Communication
Email
Hardware
HelpDeskGuide
Infrastructure
InternalProjects
Linux
MachineNotes
Macintosh
Management
Networking
Printing
Research
Security
Software
Solaris
StaffStuff
TaskGroups
TermGoals
Teaching
UserSupport
Vendors
Windows
XHier
Other Webs
CSEveryBody
Main
Sandbox
TWiki
UW
My links
People
CERAS
WatForm
Tetherless lab
Ubuntu Main.HowTo
eDocs
RGG NE notes
RGG
CS infrastructure
Grad images
Edit
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback