Re: Sudo and limited rights

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 31 Oct 2011 12:45:18 Anne Wilson wrote:
> On Monday 31 Oct 2011 12:25:37 Colin J Thomson wrote:
> > On Monday 31 Oct 2011 12:16:03 Anne Wilson wrote:
> > > On Monday 31 Oct 2011 10:40:12 Patrick Boutilier wrote:
> > > > 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.
> > > > 
> > > > 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/
> > > 
> > > Thanks.  Unfortunately it doesn't seem to work - kwrite still shows an
> > > empty file even though I can see the size of it indicating that it is
> > > quite big.
> > 
> > Have you tried KSystemlog Anne, its part of kdeadmin
> 
> I had forgotten about that, but...
> 
> "The file '/var/log/syslog' doesn't exist - and it doesn't of course.

That's right, but you can set (from memory) the default log it looks at on 
startup

Colin

-- 
Fedora 15 (Lovelock)
Registered Linux user number #342953

_______________________________________________
kde mailing list
kde@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/kde
New to KDE4? - get help from http://userbase.kde.org



[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux