[comp.sys.next] creating users to fall in different directory

hemstree@jobs.mso.colostate.edu (Charles H. Hemstreet IV) (10/31/90)

When I create a new user on my NeXT, the user's directory falls on the
root level.  Can I make it so that it is created as a subdirectory of
another.

i.e.

		current:

		/hemstree/


		would like:

		/student/hemstree/


Thanks for any information.  Please email to my "handel" account.

Charles

--
!===========================================================================!
! Charles H. Hemstreet IV       !internet: hemstree@handel.cs.Colostate.Edu !
! Colorado State University     ! "am I suppose to say something funny??"   !
!===========================================================================!

hemstree@jobs.mso.colostate.edu (Charles H. Hemstreet IV) (11/06/90)

Thanks everyone for your help.  Christopher Penrose came up with the
best solution.  Also, special thanks to Eric Larson at NeXT support.


"Christopher Penrose writes:"
-----------------------------
You can start by launching a terminal, and using "su" to gain superuser
priveleges:

% su

then use "mkdir" and "mv" to create the new directory:

% mkdir /student
% mv /bach /student
% mv /godot /student
% mv /tammy_fae /student

etc...

then you can use the user manager to change the directory names.
remember to select the long option in the view submenu.

you can also do this from your terminal session:

% cd /private/etc
% nidump passwd . > passwd
% vi passwd

add the new directory name to the home directory field of each user whose  
home directory changed.

% niload passwd . < passwd

This should work.  The niload and nidump commands are simply used to access
and update the netinfo database.

Christopher 




--original article--
   When I create a new user on my NeXT, the user's directory falls on the
   root level.  Can I make it so that it is created as a subdirectory of
   another.

   i.e.

		   current:

		   /hemstree/


		   would like:

		   /student/hemstree/


   Thanks for any information.  Please email to my "handel" account.

   Charles

   --
   !===========================================================================!
   ! Charles H. Hemstreet IV       !internet: hemstree@handel.cs.Colostate.Edu !
   ! Colorado State University     ! "am I suppose to say something funny??"   !
   !===========================================================================!
--
!===========================================================================!
! Charles H. Hemstreet IV       !internet: hemstree@jobs.mso.Colostate.Edu  !
! Colorado State University     ! "Where the mountains are BIG!"            !
!===========================================================================!