* problem: devfs scsi tape permissions
@ 2001-08-08 5:21 Michael Reincke
2001-08-09 16:35 ` Richard Gooch
2002-01-17 13:13 ` Michael Reincke
0 siblings, 2 replies; 3+ messages in thread
From: Michael Reincke @ 2001-08-08 5:21 UTC (permalink / raw)
To: linux-kernel
Hi,
i've some trouble with devfs and the permission on my SCSI-tape drive:
after a reboot the permissions on /dev/scsi/host0/bus0/target4/lun0 are as
follows
drwxr-xr-x 1 root root 0 Jan 1 1970 lun0/
A request on the tape-drive as normal user gives a permission denied and
the permissions on /dev/scsi/host0/bus0/target4/lun0 set to
drw------- 1 root root 0 Jan 1 1970 lun0/
all nodes in lun0 are having the right permissions:
ls -l /dev/scsi/host0/bus0/target4/lun0/
total 0
crw-rw---- 1 root tape 9, 0 Jan 1 1970 mt
crw-rw---- 1 root tape 9, 96 Jan 1 1970 mta
crw-rw---- 1 root tape 9, 224 Jan 1 1970 mtan
crw-rw---- 1 root tape 9, 32 Jan 1 1970 mtl
crw-rw---- 1 root tape 9, 160 Jan 1 1970 mtln
crw-rw---- 1 root tape 9, 64 Jan 1 1970 mtm
crw-rw---- 1 root tape 9, 192 Jan 1 1970 mtmn
crw-rw---- 1 root tape 9, 128 Jan 1 1970 mtn
So to get the whole thing work i need on /dev/scsi/host0/bus0/target4/lun0
the following permissions:
drwxrwx--- 1 root tape 0 Jan 1 1970 lun0
How could i reach this?? I tried using CFUNCTION
CREATE nst0 CFUNCTION GLOBAL chmod ${mntpnt}/scsi/host0/bus0/target4/lun0 770
CREATE nst0 CFUNCTION GLOBAL chown ${mntpnt}/scsi/host0/bus0/target4/lun0 0 26
but no work. Setiing the permissions by hand and activatinfg saving and restoring the state is also not working.
--
Michael Reincke, NUT Team 2 (Software Build Management)
STN ATLAS Elektronik GmbH, Bremen (Germany)
E-mail : reincke.m@stn-atlas.de | mail: Sebaldsbrücker Heerstr 235
phone : +49-421-457-2302 | 28305 Bremen
fax : +49-421-457-3913 |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem: devfs scsi tape permissions
2001-08-08 5:21 problem: devfs scsi tape permissions Michael Reincke
@ 2001-08-09 16:35 ` Richard Gooch
2002-01-17 13:13 ` Michael Reincke
1 sibling, 0 replies; 3+ messages in thread
From: Richard Gooch @ 2001-08-09 16:35 UTC (permalink / raw)
To: Michael Reincke; +Cc: linux-kernel, devfs
Michael Reincke writes:
> Hi,
>
> i've some trouble with devfs and the permission on my SCSI-tape drive:
>
> after a reboot the permissions on /dev/scsi/host0/bus0/target4/lun0 are as
> follows
> drwxr-xr-x 1 root root 0 Jan 1 1970 lun0/
That's fine.
> A request on the tape-drive as normal user gives a permission denied and
> the permissions on /dev/scsi/host0/bus0/target4/lun0 set to
> drw------- 1 root root 0 Jan 1 1970 lun0/
How the hell did that happen? Devfs provides no way for changing the
permissions of a directory from kernel-space. So it looks like you
have a busted devfsd configuration.
> all nodes in lun0 are having the right permissions:
> ls -l /dev/scsi/host0/bus0/target4/lun0/
>
> total 0
> crw-rw---- 1 root tape 9, 0 Jan 1 1970 mt
> crw-rw---- 1 root tape 9, 96 Jan 1 1970 mta
> crw-rw---- 1 root tape 9, 224 Jan 1 1970 mtan
> crw-rw---- 1 root tape 9, 32 Jan 1 1970 mtl
> crw-rw---- 1 root tape 9, 160 Jan 1 1970 mtln
> crw-rw---- 1 root tape 9, 64 Jan 1 1970 mtm
> crw-rw---- 1 root tape 9, 192 Jan 1 1970 mtmn
> crw-rw---- 1 root tape 9, 128 Jan 1 1970 mtn
Well, that's not the default that the kernel provides. The default is
rw access for everyone. Which even more strongly suggests that the
devfsd config you have is broken.
> So to get the whole thing work i need on /dev/scsi/host0/bus0/target4/lun0
> the following permissions:
> drwxrwx--- 1 root tape 0 Jan 1 1970 lun0
>
> How could i reach this?? I tried using CFUNCTION
You shouldn't need to do anything in the first place. My guess is to
fix the broken Debian configuration files. Talk to Russel Coker: he's
the new Debian maintainer. Tell him I sent you :-)
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem: devfs scsi tape permissions
2001-08-08 5:21 problem: devfs scsi tape permissions Michael Reincke
2001-08-09 16:35 ` Richard Gooch
@ 2002-01-17 13:13 ` Michael Reincke
1 sibling, 0 replies; 3+ messages in thread
From: Michael Reincke @ 2002-01-17 13:13 UTC (permalink / raw)
To: linux-kernel
On Thu, 2002-01-17 at 13:54, Michael Reincke wrote:
> Hi,
>
> i've some trouble with devfs and the permission on my SCSI-tape drive:
>
> after a reboot the permissions on /dev/scsi/host0/bus0/target4/lun0 are as
> follows
> drwxr-xr-x 1 root root 0 Jan 1 1970 lun0/
>
> A request on the tape-drive as normal user gives a permission denied and
> the permissions on /dev/scsi/host0/bus0/target4/lun0 set to
> drw------- 1 root root 0 Jan 1 1970 lun0/
Please ignore the previous mail. It's my fault.
--
Michael Reincke, NUT Team 2 (Software Build Management)
STN ATLAS Elektronik GmbH, Bremen (Germany)
E-mail : reincke.m@stn-atlas.de | mail: Sebaldsbrücker Heerstr 235
phone : +49-421-457-2302 | 28305 Bremen
fax : +49-421-457-3913 |
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-01-17 13:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-08 5:21 problem: devfs scsi tape permissions Michael Reincke
2001-08-09 16:35 ` Richard Gooch
2002-01-17 13:13 ` Michael Reincke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®