Erik P. Olsen wrote:
[root@epo full]# su amanda -c "amlabel -f full full01"
rewinding, reading label full01
rewinding, writing label full01, checking labelamlabel: couldn't write
tapelist: Permission denied
Well, I thought it was permissions for the file tapelist and changed
that to full permission, but still got the same error.
I then saw syslog had the following message:
Jan 22 21:13:39 epo su(pam_unix)[9298]: session opened for user amanda
by erik(uid=0)
Jan 22 21:13:39 epo su[9298]: Warning! Could not relabel /dev/pts/1
with user_u:object_r:devpts_t, not relabeling.Operation not permitted
Jan 22 21:13:39 epo su(pam_unix)[9298]: session closed for user amanda
I have no idea whatsoever what this is all about. I would be grateful if
someone would explain to me what the heck it is and how I can satisfy
amlabel?
FC3 ?
The "relabel" in syslog has nothing to do with amlabel. You seem to
have SElinux enabled. You have a problem with "su" being restricted
by selinux.
The fastest way is to disable selinux in /etc/config/selinux -- this
needs a reboot.
The better way is study selinux, and configure the system to allow
what you want. Studying takes a few days, at least...
--
Paul Bijnens, Xplanation Tel +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512
http://www.xplanation.com/ email: Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, *
* kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ... "Are you sure?" ... YES ... Phew ... I'm out *
***********************************************************************
|