• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Need Root Access to etc/rc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need Root Access to etc/rc


  • Subject: Need Root Access to etc/rc
  • From: "Johnny AppleScript" <email@hidden>
  • Date: Fri, 17 Jan 2003 16:52:39 -0700

Hello,

I need a sample script that will give me root access to use write
permissions on etc/rc.

The following works perfectly while logged in as root; I need an addition
that will allow an admin user to gain access:

tell application "Finder"
try
set pathstring to "etc:rc"
if exists pathstring then
set theFile to open for access file pathstring with write
permission
set theContents to read theFile
close access theFile
return pathstring
end if
on error errMsg number errNum
try
close access file pathstring
end try
error errMsg number errNum
end try
end tell


Anybody?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Need Root Access to etc/rc
      • From: Axel Luttgens <email@hidden>
    • Re: Need Root Access to etc/rc
      • From: John Stewart <email@hidden>
  • Prev by Date: Re: Why does the Script Editor Service do this?
  • Next by Date: Re: AppleScript Studio
  • Previous by thread: Re: ARRRGH! AppleScript hates me
  • Next by thread: Re: Need Root Access to etc/rc
  • Index(es):
    • Date
    • Thread