Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / August 2008



Tip: Looking for answers? Try searching our database.

perl script on osx generating weird permissions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexander Medina - 18 Aug 2008 15:53 GMT
Hi MacOSX perl users;(i'm new to this list)

Some background:
I'm running a perl script as a cron job on OSX Server 10.5.4 (as admin),
which is also running Final Cut Server.  The script is polling a SQL Server
database from another system we use, and subsequently creating directories
and files on another linux storage device.  Final Cut Server is already
mounting the linux storage device, as it is scanning its directories for
video files.  Therefore, my script is using the locally mounted path to
access the device and create directories and files, "/Volumes/mydir".  The
linux storage device is being connected to by Final Cut Server as
afp://server/vol1/mydir.

Now the problem:
The script is creating the folders on the linux storage with permissions
"drwx--S--"  and the files underneath are inheriting the same permissions,
with the same local user and group as the owner that is used by Final Cut
Server to connect.  I have tried manually creating these folders directly
from the linux machine (as the same local user) and do not receive the same
issue.  I have tried using a "chmod -R 777 /vol1/mydir" in my perl script.
I have also tried using the "mkdir ("/vol1/mydir", 0777)", neither of these
commands have any effect.

So, is this a problem with Perl connecting through afp?  Or does anyone
think that this is a not a perl issue and strictly a OSX to Linux as AFP
issue?  Any other thoughts?

Thanks in advance!

Alex Medina~
Ryan - 18 Aug 2008 17:09 GMT
OS X 10.5 created some permissions issues for me as well.  Look into  
setuid and maybe OSX ACLs (access control lists).

> re inheriting the same permissions,
> with the same local user and group as the owner that is used by  
[quoted text clipped - 7 lines]
> I have also tried using the "mkdir ("/vol1/mydir", 0777)", neither  
> of these
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.