Sudo and limited rights

Patrick Boutilier boutilpj at ednet.ns.ca
Mon Oct 31 10:40:12 UTC 2011


On 10/31/2011 07:33 AM, Anne Wilson wrote:
> I'm fed up of having to be root to read log files when troubleshooting.  I'd
> like to add a sudo line that gives me read-only rights to /var/log/ - is this
> possible?  I've not found any example of limted rights like that - and I don't
> want to allow write access to anyone other than root.
>
> Anne

Not really a KDE issue, but facl should work. $user will be your userid.

setfacl -R -m u:$user:r /var/log/




This one will give you access to newly created logs files without having 
to run the above again.


setfacl -d -R -m u:$user:r /var/log/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boutilpj.vcf
Type: text/x-vcard
Size: 297 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/kde/attachments/20111031/42c30f01/attachment.vcf 


More information about the kde mailing list