> export VISUAL=ed > or > export VISUAL=joe > > or whatever will do. > > That said, vipw only adds a little locking > around your editor to make sure that not more than > one is editing it. If you're the only user I'd just > edit direct: joe /etc/passwd
This is pretty useful to know. At the moment I'm doing this for my home server. I'm also trying to develop the skills and experience so that I can put linux/samba forward as a reasonable alternative to an NT4 domain or Active Directory. If there are several administrators then being able to lock the file so that only one person could use it at once would be good. > Moreoever, I'm not sure that any other passwd manipulation > tools (useradd, userdel, usermod) take any notice of vipw > locking so it's not worth much really. FWIW there's no > vipw in Solaris anymore. Ah. Well I suppose when you type in a one line command the odds of that interfering with someone else doing the same thing are pretty small. Perhaps that makes vipw a liability as someone who then saves the file will overwrite changes others might have made with the commands you mentioned. > BTW, why aren't you using useradd, usermod, userdel? > Or even better whatever graphical user management tools > your dist. of linux gives you. ) e.g. redhat-config-users > under redhat. I'm following a how to make Samba act as a PDC guide. This is part of what it mentions. perhaps I should read up on the useradd etc commands and see if I can put in the same detail that is being suggested. ie sysname$:x:1200:300:Worksation:/dev/null:/bin/false (obviously sysname is the name of the client system) I'm running Suse 8.1*. I've managed to get the public folder working, or had had managed that. I then put in all the pdc stuff, but now I can't add a win2k box to the domain. It looks to me like the nmbd is running, but not resolving anything. The Wink2k box says it might have a DNS prob when I try to add it to the domain. Still I might make a separate post about that after I've done some more testing. *I'm running Suse 8.1 cause I haven't gotten my debian CD from the SLUG or from someone else who was going to get me some. Thanks for the info Cheers Rob T -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug