Skip to content
Snippets Groups Projects
Commit f6d145bc authored by Julien Leduc's avatar Julien Leduc
Browse files

taped could not access /dev SCSI devices

The clean solution would have been to add cta to the `tape` group.
Unfortunately this does not work as groups are not refreshed within a bash process.
Therefore the short answer was to `chmod 666` SCSI devices (`sg` `st` and `nst`).
Now everything works fine in buildtree but this step could be improved.
parent 3b02d2a5
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,11 @@ if [[ -n ${BUILDTREE_BASE} ]]; then
echo "Adding cta user and group"
/usr/bin/getent group cta || /usr/sbin/groupadd cta
/usr/bin/getent passwd cta || /usr/sbin/useradd -s /bin/nologin -c "CTA system account" -g cta cta
## The following is not working as one cannot refresh groups in current shell...
# echo 'Adding cta in tape group (grant access to /dev/sg* /dev/st* /dev/nst* devices'
# /usr/sbin/usermod -a -G tape cta
# Chmod is the only way to go
chmod 666 /dev/nst* /dev/st* /dev/sg*
# creating /var/log/cta needed by taped
mkdir -p /var/log/cta
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment