LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-14-2003, 10:41 AM   #1
ewto
Member
 
Registered: Jan 2003
Location: Ohio, USA
Distribution: RH 9.0 / Fedora Core 3
Posts: 58

Rep: Reputation: 15
allow non root users add devices to /proc/scsi/scsi ?


Is there a way for me to allow non-root users to add devices to /proc/scsi/scsi.
As in multi LUN support?

I tried chmod 777 /proc/scsi/scsi, but as I'm sure everyone here but me knew ... that won't work.
I've googled myself blind ... is there a way?

Thanks
ewto
 
Old 10-14-2003, 10:49 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Why are you trying to change permissions on a psuedo type file system? Should you be trying to create or change permissions of devices in /dev ??
 
Old 10-14-2003, 11:01 AM   #3
ewto
Member
 
Registered: Jan 2003
Location: Ohio, USA
Distribution: RH 9.0 / Fedora Core 3
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks for the quick reply.

The problem is that multi LUN support is not enabled ... and I have to enable it after any reboot by typing

Code:
echo "scsi add-single-device 0 0 0 1" > /proc/scsi/scsi
as root. I'm trying to make it so that users can enable the multi LUN support.
Am I looking at this bassackwards?

ewto
 
Old 10-14-2003, 11:10 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Why don't you add that to the startup scripts, instead of manually doing it after the reboot.. makes more sense and you don't have to give your users access to run that command.
 
Old 10-14-2003, 11:23 AM   #5
ewto
Member
 
Registered: Jan 2003
Location: Ohio, USA
Distribution: RH 9.0 / Fedora Core 3
Posts: 58

Original Poster
Rep: Reputation: 15
Thank you again for your time.
Like I said, apparently I was bassackwards on this one.

I didn't even think of a startup script, probably because I haven't used them before.

A trip to google and the man pages and I'll be all set.

Thanks again!
ewto
 
Old 10-14-2003, 11:36 AM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Glad that worked out for you. Feel free to post if you run into any problems.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SCSI tape devices sbalasuriya Linux - Software 3 09-28-2004 01:14 PM
Hotplug SCSI scanner or How to write to /proc/scsi/scsi from within a shell script. samac Linux - Hardware 1 08-30-2004 02:28 PM
Error editing /proc/scsi scsi file Thaidog Linux - Newbie 2 08-26-2004 08:19 AM
Some info about '/proc/scsi/scsi' and '/dev' C.Loko Slackware 4 11-27-2003 12:30 PM
Mounting SCSI devices MasterC Linux - Hardware 12 09-25-2002 02:06 AM


All times are GMT -5. The time now is 09:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration