Need Root Access to etc/rc
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.