Re: Permissions for creating files


Subject: Re: Permissions for creating files
From: Alistair Riddell (ali@gwc.org.uk)
Date: Sat Apr 07 2001 - 08:02:44 EDT


You want to look at the patch in the current CVS tree to
libatalk/adouble/ad_open.c which changes O_RDWR to mode.

That ought to fix your problem.

On Fri, 6 Apr 2001, Christopher M. Anderson wrote:

> Hello all,
>
> I'm running netatalk 1.5pre5 on a 2.2.17-14smp kernel (redhat 6.2
> distribution). I can see the linux box in the chooser, connect via tcp,
> and open and manipulate existing files. However, whenever I copy a file
> from the mac to the linux box, or try to save a file from a mac application
> to the linux box, I get the message: "The item <item> cannot be written
> because it is locked."
>
> Wading through the .AppleDouble directory (permissions 711), existing linux
> box files have permissions 600 and an empty file by the name of the file I
> tried to save/copy with permissions 000 (hence the locking?). Similarly,
> if I try to trash an existing linux file, I am told I do not have
> permissions.
>
> I think there are some clues in my /messages log, but I'm new enough to
> linux not to know what they mean:
> at login:
> Apr 5 23:04:52 bandit afpd[19308]: dhx login: xyz
> Apr 5 23:04:52 bandit afpd[19308]: uams_dhx_pam.c :PAM: PAM Success -- No such
> file or directory
> Apr 5 23:04:52 bandit PAM_pwdb[19308]: (netatalk) session opened for user xyz b
> y (uid=0)
> Apr 5 23:04:52 bandit afpd[19308]: uams_dhx_pam.c :PAM: PAM Auth OK!: (null) --
> Inappropriate ioctl for device
> Apr 5 23:04:52 bandit afpd[19308]: login xyz (uid 500, gid 100)
>
> Then, when I try to copy a file:
>
> Apr 5 23:05:06 bandit afpd[19308]: setdirowner: chown -1/0 .AppleDouble/.Parent
> : Operation not permitted
>
> Am I having an authentication problem when I login through appletalk, and
> that's preventing me from getting thr right permissions to create files
> (and if so, how do I fix it), or do I have a something set incorrectly
> within netatalk?
>
> Thanks for any ideas,
>
> Chris
>
>

-- 
Alistair Riddell - BOFH
IT Support Department, George Watson's College, Edinburgh
Tel: +44 131 447 7931 Ext 176       Fax: +44 131 452 8594
Microsoft - because god hates us



This archive was generated by hypermail 2b28 : Sun Oct 14 2001 - 03:04:36 EDT