FreeBSD add user script syntax
I've got Samba set up as a domain controller successfully, and am now wanting to user usrmgr.exe and svrmgr.exe to make basic user admin changes from a Windows workstation. Some stuff works, and some stuff doesn't, and I was looking for some help with the script sections listed here... What works: add user script = pw user add -n %u -g users -c Windows User -s /usr/bin/nologin delete user script = pw user del -n %u -r add group script = pw group add -n %g add machine script = pw user add -n %u -g winstations -c Windows_Machine -s /usr/sbin/nologin What doesn't work: delete group script = pw group del -n %g add user to group script = pw group mod -n %g -M %u set primary group script = pw user mod -n %u -g %g What I can't figure out: rename user script = delete user from group script = Does anyone have examples that work that could pinch please? Many thanks, Steve :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD add user script syntax
I've got Samba set up as a domain controller successfully, and am now wanting to user usrmgr.exe and svrmgr.exe to make basic user admin changes from a Windows workstation. Some stuff works, and some stuff doesn't, and I was looking for some help with the script sections listed here... What works: add user script = pw user add -n %u -g users -c Windows User -s /usr/bin/nologin delete user script = pw user del -n %u -r add group script = pw group add -n %g add machine script = pw user add -n %u -g winstations -c Windows_Machine -s /usr/sbin/nologin What doesn't work: delete group script = pw group del -n %g add user to group script = pw group mod -n %g -M %u set primary group script = pw user mod -n %u -g %g What I can't figure out: rename user script = delete user from group script = Does anyone have examples that work that could pinch please? Many thanks, Steve :) Steve, How did you setup samba? There are several ways to do this. There are very useful guides on the samba site. There are also variuos scripts for adding users etc on the IDEALX site: http://www.idealx.com/content/view/141/146/lang,fr/index.en.html Rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD add user script syntax
[EMAIL PROTECTED] wrote: How did you setup samba? There are several ways to do this. There are very useful guides on the samba site. There are also variuos scripts for adding users etc on the IDEALX site: http://www.idealx.com/content/view/141/146/lang,fr/index.en.html Many thanks Rob. I've set up Samba as a PDC using tdbsam for the backend. The difficulty I'm having is figuring out the script syntax for the add user stuff as listed in my previous post. I've since read another reply that hints toward writing my own shell scripts to do the job. If that's the right way to go - I'll do it :) Cheers, Steve :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]