How do I stop my e-mail subscription?
Burning CD/DVD as a user ?
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• RYXI
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

RYXI > FreeBSD > Burning CD/DVD as a user ? 2 June 2005 19:07:14

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Burning CD/DVD as a user ?

Heikki Turunen 2 June 2005 19:07:14
 FreeBSD 5.4-p1 and Plextor 708A

/etc/devfs.conf says

own xpt0 root:operator # is this really necessary?
link acd0 cdrom
link acd0 dvd
perm acd0 0660
perm cd0 0660
perm pass0 0660
perm pass1 0660
perm pass2 0660
perm pass3 0660
perm xpt0 0666

However, 'ls -l /dev/xpt0' says

crw------- 1 root operator 227, 0 31 Tou 20:14 /dev/xpt0

Why? I can burn cd/dvd when I give command 'sudo chmod 0666 /dev/xpt0'.
Is there something wrong in my devfs.conf file?

--
Heikki Turunen

- On täällä kummat meiningit -
Add comment
Heikki Turunen 31 May 2005 21:55:13 permanent link ]
 Heikki Turunen wrote:
Why? I can burn cd/dvd when I give command 'sudo chmod 0666 /dev/xpt0'. > Is there something wrong in my devfs.conf file?>

/etc/group

operator:*­:5:root,h­eikki

--
Heikki Turunen

- On täällä kummat meiningit -
Add comment
Lowell Gilbert 31 May 2005 23:04:37 permanent link ]
 Heikki Turunen <hesekki@luukkku.kr­r.invalid> writes:
FreeBSD 5.4-p1 and Plextor 708A>
/etc/devfs.conf says>
own xpt0 root:operator # is this really necessary?> link acd0 cdrom> link acd0 dvd> perm acd0 0660> perm cd0 0660> perm pass0 0660> perm pass1 0660> perm pass2 0660> perm pass3 0660> perm xpt0 0666>
However, 'ls -l /dev/xpt0' says>
crw------- 1 root operator 227, 0 31 Tou 20:14 /dev/xpt0>
Why? I can burn cd/dvd when I give command 'sudo chmod 0666> /dev/xpt0'. Is there something wrong in my devfs.conf file?

It looks good to me; in fact, it works for me.

Note that devfs.conf is normally only executed at boot time.
If you want to use its changes without rebooting, execute /etc/rc.d/devfs.
Add comment
Heikki Turunen 1 June 2005 00:56:58 permanent link ]
 Lowell Gilbert wrote:
It looks good to me; in fact, it works for me.>

But not for me. Something is broken or missing and I have no ideas.
Note that devfs.conf is normally only executed at boot time.> If you want to use its changes without rebooting, execute /etc/rc.d/devfs.

localhost/heikki:$­ su -
Password:
localhost# /etc/rc.d/devfs restart
localhost# ls -l /dev/xpt0
crw------- 1 root operator 227, 0 May 31 23:21 /dev/xpt0
localhost# /etc/rc.d/devfs stop
localhost# /etc/rc.d/devfs start
localhost# ls -l /dev/xpt0
crw------- 1 root operator 227, 0 May 31 23:21 /dev/xpt0
localhost/heikki:$­ sudo chmod 0666 /dev/xpt0
Password:
localhost/heikki:$­ ls -l /dev/xpt0
crw-rw-rw- 1 root operator 227, 0 31 Tou 23:21 /dev/xpt0
localhost/heikki:$­

I'm totally confused...

--
Heikki Turunen

- On täällä kummat meiningit -
Add comment
Lowell Gilbert 1 June 2005 01:49:50 permanent link ]
 Heikki Turunen <hesekki@luukkku.kr­r.invalid> writes:
Lowell Gilbert wrote:>
It looks good to me; in fact, it works for me.> >
But not for me. Something is broken or missing and I have no ideas.>
Note that devfs.conf is normally only executed at boot time.> > If you want to use its changes without rebooting, execute /etc/rc.d/devfs.>
localhost/heikki:$­ su -> Password:> localhost# /etc/rc.d/devfs restart> localhost# ls -l /dev/xpt0> crw------- 1 root operator 227, 0 May 31 23:21 /dev/xpt0> localhost# /etc/rc.d/devfs stop> localhost# /etc/rc.d/devfs start> localhost# ls -l /dev/xpt0> crw------- 1 root operator 227, 0 May 31 23:21 /dev/xpt0> localhost/heikki:$­ sudo chmod 0666 /dev/xpt0> Password:> localhost/heikki:$­ ls -l /dev/xpt0> crw-rw-rw- 1 root operator 227, 0 31 Tou 23:21 /dev/xpt0> localhost/heikki:$­
I'm totally confused...

I took *exactly* the lines from your earlier message, made them the
*only* lines in my devfs.conf, and (once I removed the "own" line,
which gave errors because comments aren't supported on the end of the
line), got the results you were looking for.

Please post your exact devfs.conf file; you're probably right that it
has some sort of error. However, what you posted earlier obviously
isn't what you're actually using, so I have no idea what the problem
is.

Add comment
Heikki Turunen 1 June 2005 02:38:59 permanent link ]
 Lowell Gilbert wrote:> Heikki Turunen <hesekki@luukkku.kr­r.invalid> writes:>
Lowell Gilbert wrote:>>
It looks good to me; in fact, it works for me.>>>
But not for me. Something is broken or missing and I have no ideas.>>
Note that devfs.conf is normally only executed at boot time.>>>If you want to use its changes without rebooting, execute /etc/rc.d/devfs.>>
localhost/heikki:­$ su ->>Password:>>local­host# /etc/rc.d/devfs restart>>localhost#­ ls -l /dev/xpt0>>crw-----­-- 1 root operator 227, 0 May 31 23:21 /dev/xpt0>>localhos­t# /etc/rc.d/devfs stop>>localhost# /etc/rc.d/devfs start>>localhost# ls -l /dev/xpt0>>crw-----­-- 1 root operator 227, 0 May 31 23:21 /dev/xpt0>>localhos­t/heikki:$­ sudo chmod 0666 /dev/xpt0>>Password­:>>localhost/heikki:­$ ls -l /dev/xpt0>>crw-rw-r­w- 1 root operator 227, 0 31 Tou 23:21 /dev/xpt0>>localhos­t/heikki:$­>>
I'm totally confused...>
I took *exactly* the lines from your earlier message, made them the> *only* lines in my devfs.conf, and (once I removed the "own" line,> which gave errors because comments aren't supported on the end of the> line), got the results you were looking for.>
Please post your exact devfs.conf file; you're probably right that it> has some sort of error. However, what you posted earlier obviously> isn't what you're actually using, so I have no idea what the problem> is. >

My whole devfs.conf


#
# Examples:

# Historically X depended on this, but version 4.3.0 doesn't seem to anymore
#linkttyv0vga

# Commonly used by many ports
#linkacd0cdrom

# Allow a user in the wheel group to query the smb0 device
#permsmb00660

# Allow members of group operator to cat things to the speaker
#ownspeakerroot:ope­rator
#permspeaker0660

# Levykeasema operator-ryhmälle luku- ja kirjoitusoikeudet
own /dev/fd0 root:operator
perm /dev/fd0 0666

# CD-rom-asemien liittäminen operator-ryhmän jäsenille.
own /dev/acd0 root:operator
perm /dev/acd0 0660

# USB-muistin liittäminen.
own /dev/da0 root:operator
perm /dev/da0 0660

# Kirjoittavat cd- dvd-asemat operator-ryhmä
ownxpt0root:operato­r
linkacd0cdrom
linkacd0dvd
permacd00660
permcd00660
permpass00660
permpass10660
permpass20660
permpass30660
permxpt00666

--
Heikki Turunen

- On täällä kummat meiningit -
Add comment
Marko Vihoma 1 June 2005 03:13:07 permanent link ]
 Tuesday 31 May 2005 20:55 Heikki Turunen wrote in
comp.unix.bsd.freeb­sd.misc:
Heikki Turunen wrote:>
Why? I can burn cd/dvd when I give command 'sudo chmod 0666>> /dev/xpt0'. Is there something wrong in my devfs.conf file?>>
/etc/group>
operator:*­:5:root,h­eikki

You probably already got the answer to your question from mr. Gilbert,
but if it's only users in the operator group who need control over the
xpt device, then make it "perm xpt0 0660". That way it's a bit more
secure. I thinks it's too much to allow all processes and users
read/write access to the CAM subsystem.
Maybe You should not even keep user "heikki" in the operator group (if
the burner is the only reason), but chgrp xpt0 and the appropriate
pass[0-9]+ & cd[0-9]+ to wheel? That's how I enabled the DVD-burner
(with cdrecord and atapicam) for the wheel group. Please correct me if
I'm wrong, though :-)­
--
marko [dot] vihoma [at] dnainternet [dot] net
BOFH excuse #388:

Bad user karma

Add comment
Heikki Turunen 1 June 2005 09:11:05 permanent link ]
 Lowell Gilbert wrote:
I took *exactly* the lines from your earlier message, made them the> *only* lines in my devfs.conf, and (once I removed the "own" line,> which gave errors because comments aren't supported on the end of the> line), got the results you were looking for.>
Please post your exact devfs.conf file; you're probably right that it> has some sort of error. However, what you posted earlier obviously> isn't what you're actually using, so I have no idea what the problem> is. >

From /etc/devfs.conf

# Kirjoittavat cd- dvd-asemat operator-ryhmä
ownxpt0root:operato­r
linkacd0cdrom
linkacd0dvd
permacd00660
permcd00660
permpass00660
permpass10660
permpass20660
permpass30660
permxpt00660

I changed the last line from 0666 to 0660. It solved my problem. k3b
burns dvd-roms smoothly. Thanks Lowell and Marko :)­

--
Heikki Turunen

- On täällä kummat meiningit -
Add comment
Dorian Bttner 2 June 2005 01:38:46 permanent link ]
 Have you already looked in the pkg-message at k3b-port directory? I think
it's hard to find a better description.
Add comment
Heikki Turunen 2 June 2005 19:07:14 permanent link ]
 Dorian BГјttner wrote:> Have you already looked in the pkg-message at k3b-port directory? I think> it's hard to find a better description.

I did. As I wrote earlier my problems are over :)­

--
Heikki Turunen

- On täällä kummat meiningit -
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


RYXI > FreeBSD > Burning CD/DVD as a user ? 2 June 2005 19:07:14

see also:
Quicken 2006 and Import of .ofx files?
COMBINE 2 Quicken 2006 accounts, how?
Re: Quicken/Yahoo charting - Linear vs…
пройди тесты:
see also:
nriv
Witch

  Copyright © 2001—2008 RYXI
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.ryxi.com.
Сообщения об ошибках оставляем в сообществе bugs.ryxi.com.
Предложения и комментарии пишем в сообществе suggest.ryxi.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .