• 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
Re: A permission problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A permission problem?


  • Subject: Re: A permission problem?
  • From: "Manoah F. Adams" <email@hidden>
  • Date: Mon, 22 Sep 2014 00:48:38 -0700


On Sep 21, 2014, at 02:09:000, Omar K N wrote:




Hi & good day Yvan and colleagues,

And I repaired the permissions on this disk, same error.
Could there be a permission problem in my system?


Now I set this as shown:

set destnpath to (quoted form of "/usr/local/bin/dayone new")
set myshellscript to "echo " & (quoted form of ExportList) & "|tr -d \"\\t\"| " & destnpath
do shell script myshellscript


but I still get:

OmniFocus got an error: sh: /usr/local/bin/dayone new: Permission denied
Although it is rwx:

i3:~ okn$ sudo ls -a -l /usr/local/bin/dayone
Password:
-rwxr-xr-x  1 okn  staff  381072 Aug  4  2012 /usr/local/bin/dayone
set destnpath to (quoted form of "/usr/local/bin/dayone new")
set myshellscript to "echo " & (quoted form of ExportList) & "|tr -d \"\\t\"| " & destnpath
do shell script myshellscript

otherwise denied:


i3:~ okn$ ls -a -l /usr/local/bin/dayone
ls: /usr/local/bin/dayone: Permission denied


/Any assistance greatly appreciated!

with best regards,
Omar K N
Stockholm, Sweden


Hello,


The fact that you are having to use sudo to list the /usr/local/bin directory is a serious problem beyond the present issue.
The permissions shown by your listing appear in order, however the user and group are wrong.
Check to make sure that you have non-sudo access to all the interveening directories: /usr, /usr/local (the permissions should be 'drwxr-xr-x').
Also, the user and group on everything in /usr/local and on down should be 'root' and 'wheel'.

I would suggest that you:
sudo chmod -RP 755 /usr/local/bin/dayone;
sudo chown -RP root:wheel /usr/local/bin/dayone;

Other notes:

- as for the AppleScript part, Yvan KOENIG has noted the proper solution (quoting and all);
- as for 'dayone' being a symbolic link: I don't see any indication from the DayOne web site that it is supposed to be, and your dayone file certainly is not a symlink (looking at your 'ls' output).


Manoah F. Adams
email@hidden
federaladamsfamily.com/developer

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: A permission problem? (From: Omar K N <email@hidden>)

  • Prev by Date: Re: Can AppleScript determine if a shell process is running?
  • Next by Date: Re: Search Contacts for phone number
  • Previous by thread: Re: A permission problem?
  • Next by thread: Can AppleScript determine if a shell process is running?
  • Index(es):
    • Date
    • Thread