[auton-users] Quick general Linux question
Dan Pelleg
dpelleg+ at cs.cmu.edu
Fri Nov 1 19:46:47 EST 2002
Andrew W. Moore writes:
> How do I change my home directory? On a new machine, facilities has given
> me an afs home directory. I want to make it a local disk home
> directory. I do have su access. What should I do?
>
> Thanks,
>
> Andrew
su
setenv EDITOR=emacs
vipw (recommended)
or
vi/emacs /etc/passwd (less recommended but will probably work)
(edit the line with awm in it: where it says /afs/cs/user/home/awm
put something like /home/awm
quit editor
- if you used vipw above, then you don't want to edit the shadow file
)
df
- figure out where's a nice and big partition to put the home under, say
/usr0
mkdir /usr0/awm
chown awm.users /usr0/awm
chmod 755 /usr0/awm
mkdir /home
ln -s /usr0/awm /home
passwd -l awm (this step only if you want awm to have a local,
kerberos-unaware password)
- copy stuff into /home/awm
(.login, .cshrc, and so on - if you do this a lot, setting up
a tarfile with all of these files proves useful. I actually have
my own CVS repo for all of this stuff, which makes updating them
and keeping them in sync across machines simpler. Well, for some
value of "simple" at least).
- chown -R awm.users /usr0/awm
- I usually set up "afs-home" as a symlink to /afs/cs/usr/home/awm
- test: best done by opening a new window to login as awm, so if it
doesn't work you can still correct things in your still-open root window.
More information about the Autonlab-users
mailing list