This discussion is archived
307 Views 3 Replies Latest reply: Apr 20, 2007 1:04 PM by Zerwas
Currently Being ModeratedApr 12, 2007 10:30 AM (in response to sbono)You can use an AppleScript for this.
Open the ScriptEditor and copy the lines into:
do shell script "chmod 755 /private/var/spool/cups" password "YourPassword" with administrator privileges
Then save the Script as Programm and put it in the Startup Items in your account.
At every Login, the script should be executed. When you want an password box, remove the lines for the password.PowerBook G3 FW, Mac OS X (10.4.9)
Currently Being ModeratedApr 19, 2007 9:16 AM (in response to Zerwas)Did not work. I kept getting an invald script error so I changed the line to read. do shell script "sudo chmod 755 "private/var/spool/cups" password "***". I saved the file as an APP. I keep getting prompted for the password and if I type it in the propmt dissapears and does not seem to have changed the permissions on the cups folder.
SalPower MAC G5, Mac OS X (10.4.9)
Currently Being ModeratedApr 20, 2007 1:04 PM (in response to sbono)This Script works here. Get you the error, when you save or checks the syntax?
When you use in AppleScript the entry with administrator privileges, is sudo optional. This says only, if everyone can use the sudo command inside of the 5 minutes limit without to write the password again or not.
The Syntax do shell script "sudo chmod 755 "private/var/spool/cups" password "***" doesn´t work, because you need the entry with administrator privileges for the execution as privileged user.