Re: Need help with cdrecord/rscsi
Hi Jörg On Wed, 2002-06-12 at 00:23, Joerg Schilling wrote: [...] o How can I use remote devices without being root on the client machine? Not possible because of UNIX restictition, but PLEASE RTFM for cdrecord. Probably I didn't make myself clear here: I just found out that making cdrecord suid root does infact work. It didn't orginally for me but that was apparently due to a different problem. So, I'm a happy camper with regards to this. o How can I use rscsi without having to have rshd running on the server=20 machine? Impossible o Is there a way to use ssh instead of rsh? Why? ssh is way too slow for cd writing. Hm...I think it depends. This is between the machines in question: andree@aurich:~/downloads/kernelscp linux-2.2.17.tar.bz2 jever: Password: linux-2.2.17.tar.bz2 100% || 13727 KB00:02 Between 2 and 3 seconds for 13+MB should be sufficient for CD writing don't you think. Or is there a hidden latency problem somewhere? A good reason to use ssh/sshd would be encryption of the datastream in situations where you want to use it across a non-trusted net. If you have a ssh aware rcmd(3) implementation it should work. I'll check that out, thanks! Would that give me encryption of the data? I fear not, as rcmd is rcmd and doesn't come with encryption... Other questions: What is your opinion on http://sourceforge.net/projects/linux-iscsi? I understand that this is only a client to access iSCSI services. Are you aware of any server iSCSI development for Linux? This would pretty much be what rscsi is doing, wouldn't it? The RSCSI idea is more than 5 years old and has been finally implemented short before the ISCSI idea came up. If you believe that ISCSI makes sense, write a ISCSI transport implementaion for libscg and send it to me... I'm using SANE to access a remote scanner just as I'm trying to access a remote CD writer via cdrecord/rscsi. This prompts me to ask the question whether you've ever contemplated to turn cdrecord into a library just like the SANE folks did? Sorry, I contacted the SANE people many times to use my scsi trnaport implementaion. They don't like it because their implementation is so InSANE that it is not possible to integrate a SCSI trabsport with a clean interface :-( That is quite sad to hear as it sounds like triplication of effort. My understanding is that iSCSI is an open (?) industry standard which can be implemented by anyone. (Well, anyone that understands the matter, ie. not me, so don't hold your breath... ;-) ) This to my mind gives it an edge over rscsi and whatever SANE is doing. I quite like the SANE approach as it doesn't require me to run rshd but comes with its own custom-purpose daemon. This is purely from a user perspective without any insight in the actual implementation of course. What I really meant with my library question is this: In the SANE world you have e.g. aurich:/usr/binldd xsane libsane.so.1 = /usr/lib/libsane.so.1 (0x40014000) In other words, the functionality is encapsulated in a library. Wouldn't it be nice to have something like: aurich:/usr/binldd gtoaster libcdrecord.so.1 = /usr/lib/libcdrecord.so.1 (0x40014000) I'd dare say that making the cdrecord functionality available as a library should have a number of advantages over calling a separate program. What is your opinion on this? Best regards Andree -- Andree Leidenfrost Sydney - Australia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Need help with cdrecord/rscsi
Hi Jörg Make sure that .rhost is set up correctly. The permissions of ~rscsi/.rhosts were a bit, er, liberal. It works now, as root I can do cdrecord dev=REMOTE:[EMAIL PROTECTED] -scanbus on the client machine and I get a list of SCSI targets on the server machine. READ the README's for remote SCSI! What do you mean? How do you think did I get as far as I did before contacting the mailing list? ;-) Seriously, I tried to do the preferred method from README.rscsi.gz as a starting point. Are there other READMEs for remote SCSI? If so, I'd be keen to find out whether they have information regarding the following: o How can I use remote devices without being root on the client machine? o How can I use rscsi without having to have rshd running on the server machine? o Is there a way to use ssh instead of rsh? Note: I am not necessarily argueing with the security of the setup suggested. My primary concern is that I have to have rshd running on the server machine which I normally don't. Other questions: What is your opinion on http://sourceforge.net/projects/linux-iscsi? I understand that this is only a client to access iSCSI services. Are you aware of any server iSCSI development for Linux? This would pretty much be what rscsi is doing, wouldn't it? I'm using SANE to access a remote scanner just as I'm trying to access a remote CD writer via cdrecord/rscsi. This prompts me to ask the question whether you've ever contemplated to turn cdrecord into a library just like the SANE folks did? Best regards Andree -- Andree Leidenfrost Sydney - Australia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Need help with cdrecord/rscsi
Jörg Are you saying I can only use rscsi as user root on the client machine even though cdrecord is setuid root on the client machine? As root I get: jever:/home/andree# cdrecord dev=REMOTE:[EMAIL PROTECTED] -scanbus -d dev: REMOTE:[EMAIL PROTECTED] speed: 4 fs: 4194304 Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling TOC Type: 1 = CD-ROM scsidev: 'REMOTE:[EMAIL PROTECTED]' devname: 'REMOTE:[EMAIL PROTECTED]' scsibus: -1 target: -1 lun: -1 scg__open(REMOTE:[EMAIL PROTECTED]) -1,-1,-1 Warning: Using remote SCSI interface. cdrecord: locuser: 'root' rscsiuser: 'rscsi' host: '192.168.1.1' Permission denied. cdrecord: Success. Cannot get connection to remote host. Cannot open SCSI driver. cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root. I have added root to .rhosts on the server machine and I can logon using rsh/rlogin without password to account rscsi no problem. So, why do I get 'Permission denied.' and in the next line 'cdrecord: Success. [...]'? I don't normally only use ssh and don't have rshd installed. Is there a chance to get it to work with ssh and without having to be root on the client system. Best regards Andree -- Andree Leidenfrost Sydney - Australia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Need help with cdrecord/rscsi
Hi I am trying to setup remote CD burner access between 2 Debian woody boxes (kernel 2.4.18). There seems to be some kind of access/authentication problem as /tmp/RSCSI does not even get created when trying to access the remote CD burner. The session looks like this: andree@jever:~cdrecord dev=REMOTE:rscsi@aurich: -scanbus -d dev: REMOTE:rscsi@aurich: speed: 4 fs: 4194304 Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling TOC Type: 1 = CD-ROM scsidev: 'REMOTE:rscsi@aurich:' devname: 'REMOTE:rscsi@aurich:' scsibus: -2 target: -2 lun: -2 scg__open(REMOTE:rscsi@aurich:) -2,-2,-2 Warning: Using remote SCSI interface. cdrecord: locuser: 'andree' rscsiuser: 'rscsi' host: 'aurich' rcmd: socket: m cdrecord: Permission denied. Cannot get connection to remote host. Cannot open SCSI driver. cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root. From the mailing list archive I gather that other people were bitten by this before. So, if anyone has figured it out: Please share your wisdom with a desperate soul! ;-) 'rlogin -l rscsi aurich' works fine, ie. I get access to the machine without providing a password and rscsi starts. /home/rscsi/.rhosts looks like this: jever andree (I tried what README.rscsi says, ie. just providing the user name with the same error but I can then not logon using rlogin without a password.) /etc/default/rscsi looks like this: DEBUG=/tmp/RSCSI USER=* ACCESS=** -1 -1 -1 -1 Permissions of the binaries are as follows: -rwsr-xr-x 1 root root 181160 Apr 9 19:44 /usr/bin/cdrecord -rwsr-xr-x 1 root root 61544 Apr 9 19:44 /usr/sbin/rscsi cdrecord locally on the machine with the CD writer works fine: andree@aurich:~cdrecord -scanbus Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling Linux sg driver version: 3.1.22 Using libscg version 'schily-0.5' scsibus0: 0,0,0 0) * 0,1,0 1) * 0,2,0 2) * 0,3,0 3) * 0,4,0 4) 'IBM ' 'DCAS-34330 ' 'S65A' Disk 0,5,0 5) 'IOMEGA ' 'ZIP 100 ' 'E.08' Removable Disk 0,6,0 6) * 0,7,0 7) * scsibus1: 1,0,0 100) 'RICOH ' 'CD-R/RW MP7120A ' '1.10' Removable CD-ROM 1,1,0 101) 'PIONEER ' 'DVD-ROM DVD-115 ' '1.22' Removable CD-ROM 1,2,0 102) * 1,3,0 103) * 1,4,0 104) * 1,5,0 105) * 1,6,0 106) * 1,7,0 107) * If there is any other information that is required, please, let me know and I'll provide it. Thanks a lot for your time best regards Andree -- Andree Leidenfrost Sydney - Australia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]