Re: sudo port
eoghan wrote: I have installed sudo from ports, and the docs say that the allowed list of users is located in: /etc/sudoers However i cannot locate this file in /etc/ or anywhere else for that matter. What file or where do i need to add a list of authorized users? as root you should do : visudo (if you don't like vi, then do e.g. export EDITOR=nano if you prefer nano) you should try to use visudo because it helps you to prevent making syntax-errors which can save you a few grey hairs (and try : pkg_info -L sudo* and discover it's in /usr/local/etc :-) -- grtjs, albi gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sudo port
albi wrote: eoghan wrote: I have installed sudo from ports, and the docs say that the allowed list of users is located in: /etc/sudoers However i cannot locate this file in /etc/ or anywhere else for that matter. What file or where do i need to add a list of authorized users? as root you should do : visudo (if you don't like vi, then do e.g. export EDITOR=nano if you prefer nano) you should try to use visudo because it helps you to prevent making syntax-errors which can save you a few grey hairs (and try : pkg_info -L sudo* and discover it's in /usr/local/etc :-) ah ok, thanks for that. Found it and edited! Eoghan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sudo port
eoghan [EMAIL PROTECTED] wrote: I have installed sudo from ports, and the docs say that the allowed list of users is located in: /etc/sudoers Docs coming with the port or docs on the web? However i cannot locate this file in /etc/ or anywhere else for that matter. What file or where do i need to add a list of authorized users? /usr/local/etc/sudoers. IIRC it doesn't exist by default, but you can copy from sudoers.default and sudoers.sample in the same directory. Fabian -- http://www.fabiankeil.de/ signature.asc Description: PGP signature
Re: sudo port
Fabian Keil wrote: eoghan [EMAIL PROTECTED] wrote: I have installed sudo from ports, and the docs say that the allowed list of users is located in: /etc/sudoers Docs coming with the port or docs on the web? I checked here: http://www.freshports.org/security/sudo/ Commit history suggested to me it was in /etc/ However i cannot locate this file in /etc/ or anywhere else for that matter. What file or where do i need to add a list of authorized users? /usr/local/etc/sudoers. IIRC it doesn't exist by default, but you can copy from sudoers.default and sudoers.sample in the same directory. Yep, thanks Fabian. I have got it working now. I need to learn grep more. Thanks Eoghan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sudo port
eoghan [EMAIL PROTECTED] wrote: Fabian Keil wrote: eoghan [EMAIL PROTECTED] wrote: I have installed sudo from ports, and the docs say that the allowed list of users is located in: /etc/sudoers Docs coming with the port or docs on the web? I checked here: http://www.freshports.org/security/sudo/ Commit history suggested to me it was in /etc/ I guess you're referring to Remove etc/sudoers on deinstall if user haven't modified it? It's easy to overlook, but there is no leading slash and the path is relative (to ${PREFIX}). Fabian -- http://www.fabiankeil.de/ signature.asc Description: PGP signature
Re: sudo port
eoghan wrote: Hi I have installed sudo from ports, and the docs say that the allowed list of users is located in: /etc/sudoers That blasted penguin! Wonder if Colin Percival can depenguinate 3rd-party documentation? When you install from ports, stuff goes to /usr/local unless you've deliberately tweaked the make process via the command line, make.conf(5), and such. So try /usr/local/etc. Kevin Kinsey -- Your business will go through a period of considerable expansion. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sudo port
e == eoghan writes: e Hi e I have installed sudo from ports, and the docs say that the allowed e list of users is located in: e /etc/sudoers e However i cannot locate this file in /etc/ or anywhere else for that e matter. What file or where do i need to add a list of authorized e users? file sudoers can be placed to /usr/local/etc/ example can be found in /usr/local/etc/sudoers.sample or you can simply run visudo you can see where files placed by use pkg_info (1) command for sample $ pkg_info -L sudo-1.6.8.12_1 Information for sudo-1.6.8.12_1: Files: /usr/local/man/man5/sudoers.5.gz /usr/local/man/man8/sudo.8.gz /usr/local/man/man8/visudo.8.gz /usr/local/man/man8/sudoedit.8.gz /usr/local/bin/sudo /usr/local/bin/sudoedit /usr/local/etc/sudoers.default /usr/local/etc/sudoers.sample /usr/local/libexec/sudo_noexec.so /usr/local/sbin/visudo e Thanks e Eoghan e ___ e freebsd-questions@freebsd.org mailing list e http://lists.freebsd.org/mailman/listinfo/freebsd-questions e To unsubscribe, send any mail to [EMAIL PROTECTED] -- // Max N. Boyarov pgpnedk0wY2Ef.pgp Description: PGP signature