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): udev-057-2 How reproducible: Always Steps to Reproduce: 1.Configure amanda 2.Attempt to run amcheck or amdump 3. 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).
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?
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?
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: udev_rules 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/. udev_permissions 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- sions.d/.
Rawhide is still creating /dev/nst0 as mode 640 with udev-058-2.
ok... what about udev-063-4?
To get by, I added the following entries in a file named /etc/udev/rules.d/60- tapedrive.rules: 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"
should be this way in the latest udev releases.