Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i had problems getting cdrw to work

Status
Not open for further replies.

jad

Programmer
Apr 7, 1999
1,195
GB
i had problems getting cdrw to work on a sparc running solaris 8, except as root recently, and i thought i would say how i got it to work for all my users.

the first time a user tried to access 'cdrw' they were told that there were no devices (even though cdrw was set-uid to root)
i found i had to grant read access to everybody on the raw device:
[tt]chmod a+r /devices/iommu@0,10000000/sbus@0,100.../sd6,0:c[/tt]

this allowed uses with cd images to write happily to the blank cd's in the drive.

cdrw -c (copying a cd) caused me more trouble, till reading all the files and man pages and info and suns websites caused me in frustration to type 'printenv'
the problem on our system was that the machine was only set up with 400Mb swap space (loads really, but not the 600Mb needed for a cd image) and SUN helpfully (for security i guess) disabled the '-m' option for non root users
[tt]setenv TMPDIR <my big storage temporary directory>[/tt]
fixed this problem for me, and i've not had to tell anyone the root password, and i've not lost the war to the Wintel users and had to hand the CD-Writer back :)

for the record; The mkisofs command i use, generally, is the following:
[tt]mkisofs -d -L -J -r -v -V <volume-name> -o <global large temporary storage directory>/<volume-name>.img <directory/file you want recorded>[/tt]

Jon
 
Heh, I just joined this forum hoping to find info regarding burning CD-Rs on Solaris 2.8. I'm fairly new to Solaris and have an Ultra 5. Installed a CD-R drive and have been strugling with the issue of being required to be logged in as root to burn CDs.

I'll try your suggestions above.

What did you do regarding Volume manager (/etc/init.d/volmgt). Volume Manager apparently does not like it when you insert a blank CD-R in the drive as it can't mount a file system to a blank disk and therefore ejects the disk automatically after about 5 seconds. Did you disable it for the CD-R drive by commenting out the line in /etc/vold.conf? Or do you turn off Volume Manager (/etc/init.d/volmgt stop) temporarily to burn CDs and the re-enable it?

I have also considered permanently disabling Volume Manager but then would be required to use mount/umount to access data CDs which again requires root user privledges.

Essentially, I'd like to be able to burn CD-Rs and read data CDs from a standard non-root user account without having any requirement that root intervene anywhere in the process.

Any help or suggestions would be much appreciated :)
 
/etc/init.d/volmgt stop

:)

kill volmgt. as it happens the machine i set up never has to use the cdrom for anything else, and never has had it's floppy drive used yet ... :) so it doesn't need volmgt started.

if you don't need it, then disable it, if you do need it then you will have to keep logging in as root when you need to use the writer ... :(

modifying vold.conf does appear to work though, but is only really useful if you have more than 1 cd-rom drive (including the writer) in your machine.
 
I'm learning quickly :) Thanks for the response.

Our Sun rep &quot;claims&quot; that a fix will be included in the next patch for Solaris 8 that will somehow allow insertion of blank CD-R media AND the ability to read data CDs in the CD-R drive from a non-root user account. Whether or not this means they are fixing Volume Manager or changing something else I do not know.

I guess it's a &quot;wait and see&quot; game now :)

note: through trial and error I found the correct raw device file to set as readable by all so that the cdrw commands now work from a non-root user account. Our CD-R is IDE and as I'm a UNIX rookie it took some digging and tweaking of various files to find the right one. Luckily they gave me root access so I could experiment (muwahahaha) :)

Thanks again.
 
quick add another user with uid 0 ... ;)

they'll never know honest!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top