Bug 155770 - /dev/{,n}st[0-9] is not usable by Amanda because they are not writable by group "disk"
/dev/{,n}st[0-9] is not usable by Amanda because they are not writable by gro...
Product: Fedora
Classification: Fedora
Component: udev (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
Depends On:
  Show dependency treegraph
Reported: 2005-04-22 17:08 EDT by Jay Fenlason
Modified: 2014-08-31 19:27 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-15 07:22:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jay Fenlason 2005-04-22 17:08:45 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.4) Gecko/20050318 Red Hat/1.4.4-1.3.5

Description of problem:
The default mode for tape devices is 640 root:disk.  Amanda expects non-root users in group disk to be able to read and write the tape devices.  After each reboot I have to manually chmod 666 /dev/*st[0-9]*

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Configure amanda
2.Attempt to run amcheck or amdump

Actual Results:  amcheck, amdump, etc report Permission Denied when they attempt to access the tape device.

Expected Results:  amcheck, amdump, etc can read and write the tape device.

Additional info:

Also, whenever I modify /etc/udev/rules.d/50-udev.rules to make the tape devices writable, my changes are blown away the next time "yum update" updates the udev rpm.  Perhaps the file should be %config(noreplace).
Comment 1 Harald Hoyer 2005-04-25 08:29:12 EDT
I will change the permissions. Why don't you create
/etc/udev/rules.d/10-local.rules or /etc/udev/rules.d/60-otherlocal.rules?
Comment 2 Jay Fenlason 2005-04-25 09:14:36 EDT
I couldn't find any reference to those files in the man pages, nor in the 
comments in the files under /etc/udev/  Would entries in those files (-local 
or -otherlocal) override the entries in 50-udev.rules? 
Comment 3 Harald Hoyer 2005-04-25 11:27:54 EDT
you should add your own rules in files in /etc/udev/rules.d with the extension
.rules and /etc/udev/permissions.d/ with the extension .permissions.

man udev:

              The name of the udev rules file or directory to look for  files
              with  the  suffix  .rules.   All rule files are read in lexical
              order. The default value is /etc/udev/rules.d/.

              The name of the udev permission file or directory to  look  for
              files  with  the suffix .permissions.  All permission files are
              read in lexical order. The default value  is  /etc/udev/permis-

Comment 4 Jay Fenlason 2005-07-13 09:52:27 EDT
Rawhide is still creating /dev/nst0 as mode 640 with udev-058-2. 
Comment 5 Harald Hoyer 2005-08-02 11:25:58 EDT
ok... what about udev-063-4?
Comment 6 Chris Hapgood 2005-09-23 15:12:45 EDT
To get by, I added the following entries in a file named /etc/udev/rules.d/60-

KERNEL=="ht*",                  GROUP="disk",   MODE="0660"
KERNEL=="nht*",                 GROUP="disk",   MODE="0660"
KERNEL=="pt[0-9]*",             GROUP="disk",   MODE="0660"
KERNEL=="npt*",                 GROUP="disk",   MODE="0660"
KERNEL=="st*",                  GROUP="disk",   MODE="0660"
KERNEL=="nst*",                 GROUP="disk",   MODE="0660"
KERNEL=="osst*",                GROUP="disk",   MODE="0660"
KERNEL=="nosst*",               GROUP="disk",   MODE="0660"
Comment 7 Harald Hoyer 2006-02-15 07:22:03 EST
should be this way in the latest udev releases.

Note You need to log in before you can comment on or make changes to this bug.