On Thu, Sep 04, 2003 at 10:50:22AM -0500, Dana Holland wrote: > I've written a shell script which will create a new user, then create a > .forward and .vacation.msg file in the new user's home directory. > Within this script, I'm trying to automate the initialization of the > vacation program - that's where I'm running into problems. I've tried it > two ways. > > 1. su $oldid > vacation -I > exit > > 2. su $oldid -c'/usr/bin/vacation -I' > > Neither works. I receive the following error message: > > bash: /root/.bashrc: Permission denied
Try to add an extra '-' after 'su' > One other related question - I read in a man page that if you don't > explicitly set a password after issuing the useradd command, then that > account isn't enabled for logging in. Is that correct? I've tested it > and it seems to be true, but I wanted to verify that. I don't want There's no password that encodes to !. Old crypt() creates 13 characters, md5 passwords are even longer. > these users to be able to log in to their old email accounts. There's also a deactivate option available... Steffen -- Steffen Grunewald * * * Merlin cluster admin (http://pandora.aei.mpg.de) MPI für Gravitationsphysik (Albert-Einstein-Institut) Am Mühlenberg 1, 14476 Golm, Germany (http://www.aei.mpg.de) e-mail: steffen.grunewald(*)aei.mpg.de * +49-331-567-{fon:7233,fax:7298} -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list