QuickTopic (SM) free message boards QuickTopic (SM) free message boards
Skip to Messages
  Sign In to access your topic list  |New Topic |My Topics|Profile
$39 July special! Upgrade to Pro   Customize, show pictures, add an intro, and more:   QuickTopic Pro
Topic: devpermissions
Views: 1420, Unique: 638 
Subscribers: 1
What's
this?
Printer-Friendly Page
Subscribe to get & post, or stop messages by email Subscribe
About these ads
Who | When
Messagessort recent-bottom   
Post a new message
 
Paul HoffmanPerson was signed in when posted  5
11-09-2003 09:20 PM ET (US)
...but not on mine. I'm running 10.2.8.
YesThatTom  4
11-09-2003 01:15 PM ET (US)
"man 5 fbtab" works on my Mac!
Paul HoffmanPerson was signed in when posted  3
11-07-2003 11:32 AM ET (US)
The fbtab idea works great on FreeBSD (thanks!), but isn't available under OS X. Well, at least there is no man page for fbtab.
YesThatTom  2
11-07-2003 11:14 AM ET (US)
No, the "unixy" way is to use the appropriate mechanism rather than adding a gross hack at bootup. Solaris, for example, has /etc/logindevperm and BSD-based systems have /etc/fbtab.

"man fbtab" gives you more information.
sysadmn  1
11-06-2003 03:59 PM ET (US)
Well, the 'unixy' way is to set the permissions in a startup script. Don't have access to a Mac (yet :0), but on Linux/Solaris, there are a set of directories (/etc/rc[123456].d or /etc/init/rc[123456].d). Each script beginning with "S" is executed as root in numerical order when the corresponding kernel run-level is entered. Typically the scripts are symlinks to a script in the init directory (typically /etc/init.d). If similar directories exist on OSX (may or may not, since BSD used to use monolithic files...), create a startup script to set the permissions you want.
Step by step:
1) In /etc/init.d, create the file 'SetBPFPerms'. Here is a skeleton:
-------8< Cut Here 8<--------
#!/sbin/sh
#

case "$1" in
'start')
 #Place commands to set perms here
 ;;

'stop')
 # Place commands to be executed on shutdown here
 ;;

*)
 echo "Usage: $0 { start | stop }"
 exit 1
 ;;
esac
exit 0
-------8< Cut Here 8<--------
2) Edit the file to set the permissions as necessary.
3) Assuming you want the permissions set entering run-level two, create symlinks from the proper directories to this file. On Solaris, the commands (as root) would be
ln -s /etc/init.d/InitBPFPerms /etc/rc2.d/S99InitBPFPerms
ln -s /etc/init.d/InitBPFPerms /etc/rc2.d/K99InitBPFPerms
RSS link What's this?
QuickTopicSM message boards
Over 200,000 topics served
Learn more Frequently asked questions  Acknowledgements
What they're saying about QuickTopic
 Questions, comments, or suggestions? Contact Us
Read our use policy before beginning. We value your privacy; please read our privacy statement.
Copyright ©1999-2006 Internicity Inc. All rights reserved.