LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-08-2007, 09:16 AM   #1
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
(It seems) a permission problem with a CD/DVD recorder


Hi.

I already wrote a post about this some time ago and I haven't yet found a solution. I have an external USB DVD recorder which I only plug when I need it. I plug it in and my user sees it (cdrw -l). I seldom reboot my machine and sometimes when I plug the DVD recorder my user cannot see it, but if I cdrw -l with root, the device is there and functional. I couldn't troubleshoot this and the only solution was... rebooting. Sometimes, though, reboot is not enough and I must use it as root, which is not a big problem, but it's pretty annoying.

The system is always the same, a vanilla Solaris Ex. Dev. Ed. 09/07, and no additional software was installed.

Can you suggest how I can troubleshoot this?

Thanks,
Enrico.
 
Old 12-08-2007, 10:19 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Have you removed cdrw root's sticky bit ?
 
Old 12-08-2007, 11:27 AM   #3
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
No jlliagre! Indeed ls -al /usr/bin/cdrw shows
Code:
-rwsr-xr-x   1 root     bin        75056 Aug 25 08:58 /usr/bin/cdrw
 
Old 12-08-2007, 03:41 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Is AUTHS_GRANTED set to solaris.device.cdrw in /etc/security/policy.conf ?
 
Old 12-08-2007, 06:21 PM   #5
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Hi jlliagre.

Code:
enrico@suncarol:~$ grep AUTHS_GRANTED /etc/security/policy.conf
AUTHS_GRANTED=solaris.device.cdrw
 
Old 12-09-2007, 01:00 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Are your users running bash as their login shell ?
 
Old 12-09-2007, 07:10 AM   #7
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Not everyone but the users which uses the DVD writer unit, yes.
 
Old 12-09-2007, 07:33 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Switch them to ksh, have them log in again and see if the problem persists.

I have seen in the past using bash breaking RBAC features.
 
Old 12-09-2007, 07:50 AM   #9
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Funny jlliagre!

I just tried to change an user shell to ksh the DVD writer indeed appeared. Maybe it's coincidence, but yesterday night the problem persisted and could not reboot in that moment so I'd expect the problem to persist today. Good.

The funny thing is that just after the recorder appeared in that ksh, all the other bashes started to see it too! The important thing is that ksh seems to have solved the issue.

I'll continue monitoring this and let you know.

Thanks,
Enrico.
 
Old 12-09-2007, 04:44 PM   #10
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
I don't know if I claimed victory too early. My user's shell is now ksh and:
Code:
u@h:w$ cdrw -l
Looking for CD devices...
Volume manager is not running.
Please start volume manager or run cdrw as root to access all devices.
# cdrw -l
Looking for CD devices...
    Node                   Connected Device                Device type
----------------------+--------------------------------+-----------------
 /dev/rdsk/c1t0d0s2   | LITE-ON  DVD SHD-16P1S    GS04 | CD Reader
u@h:w$ svcs -a | grep vol
online         Dec_07   svc:/system/filesystem/rmvolmgr:default
The funny thing is that this device is the internal DVD reader of the workstation, so the problem seems deeper than I thought.

Enrico.

Last edited by crisostomo_enrico; 12-09-2007 at 04:49 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD recorder not recognised mscox Linux - Hardware 1 04-05-2007 04:57 PM
I can't configure my cd-dvd recorder as a recorder!!! slamd64 Lier Linux - Software 4 10-26-2006 11:40 PM
[SOLVED] Suse 9.3 fail mounting dvd and dvd recorder enrico_dvchp Linux - Software 2 07-07-2006 11:48 AM
DVD to DVD recorder through shell bluedragon3710 Linux - Software 4 03-20-2006 06:31 PM
Cannot Play back DVD on PC recorded from a DVD recorder shazam75 Linux - Software 2 12-29-2005 03:11 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration