Kurt Verhofstadt wrote:
Hi,
We recently started migrating our SLES9_SP2 s390x-servers to SLES9_SP4.
We have been using udev, mainly for switching our 3590 and 3592 tapedrives
between the VM guests.

The linux-user 'db2inst1' does the db2backup to tape.  This user sends the
mount request to VM and after completion, does  'chccwdev -e 0.0.0<cuu>'
to put the tapedrive online.
Since SP4, this resulted in an error because this user has no write-rights
on /sys/devices/css0/<path>/<channel-id>/online.
Our udev.rules are setup so that a tape-device name /dev/tape/cuu is
created.  On this device, the user can write.  But, udev is only called
after chccwdev -e is executed.
And this does no longer work.

We bypassed this by adding 'chown' and 'chmod' in /etc/hotplug/ccw.agent
to allow a group (with db2inst1) gets write access to
'/sys/devices/css0/<path>/<channel-id>/online'.
Are there any other users that came across this problem ?
Is it (still) possible for non-root users to execute 'chccwdev'   ?

Thanks for any tips or advise.

Kurt is it not better to do the chccwdev via "sudo" and authorise
db2inst1 to the sudo list?

See "man sudo" and "man sudoers" for more info.

mark

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to