Re: sudoedit, restricting to particular folder



On Tuesday 30 May 2006 16:22, N.J. Thomas wrote:

The following works for me:

luser ALL = (root) sudoedit /home/luser/foo/*

(Sudo 1.6.8p12, FreeBSD 5.4)

Why not give them root while you're at it:

luser$ cd ~/foo; ln -s /etc/master.passwd; sudoedit ~/foo/master.passwd

--
Kirk Strauser
The Day Companies
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • /etc/passwd related problem; blocked system-account
    ... I'm currently trying out FreeBSD, ... The "operator"-user is allowed to use 'sudo' to do ... The theory is that as 'su' is run as "root", ... that specifies locked accounts, or maybe a delay ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Allowing Users To Set Date
    ... > Is there a way that I can allow a user to set the system time without allowing them to su to root? ... I can do things using sudo, but I was wondering if there was a way without using third party software. ... Just because it's not in the FreeBSD base don't hold ...
    (freebsd-questions)
  • Re: Should sudo be used?
    ... I thought it would be a good idea to use sudo on my FreeBSD laptop, ... I don't wish to run as root; sudo is used so I can be "me" and still have pretty buttons that run Ethereal, format a floppy disk, etc.. ... As someone else mentioned, "tools, not policy" is a UNIX axiom. ...
    (freebsd-questions)
  • Re: Sudo Commands on New 6.2 System Cause Last Login Message.
    ... it IS odd that you're using sudo when logged in as root 8o) ... I tried you're commands here and I don't get the Last login message. ... I am not getting it on most other FreeBSD systems except ...
    (freebsd-questions)
  • Re: Card Reader
    ... Running your script ... instead of sudo is worthless because your script *can't do ... And of course it doesn't ask for a root password, ... >> That's just more bullshit Bryan, and you might as well leave ...
    (rec.photo.digital)