Subject: Re: Help getting netatalk working
To: Michael G. Schabert <mikeride@mac.com>
From: B. James Phillippe <bryanxms@ecst.csuchico.edu>
List: netbsd-help
Date: 10/22/2001 16:50:04
On Mon, 22 Oct 2001, Michael G. Schabert wrote:

> >Enter stumbling block #2... :-(   The client is able to "mount" the
> >Appletalk volumes that I specify, and read/write files with ease.
> >However, creation of a directory yields a "you don't have sufficient
> >access priviledges" error on the client and a "afpd[xx]: setdirmode:
> >chmod .AppleDouble: Operation not permitted" error in the log on the
> >server.  Files within a folder are not copied unless copied after the
> >folder has been created in the volume.
> >
> >I did a Net search and low-and-behold, this problem is shared by dozens
> >(hundreds?) of netatalk users since about 1998 with no solution that I
> >could find.  I am using a "guest" account of "macuser", with a group of
> >"macuser" that contains the "macuser" user.  All files in the share are
> >owner macuser.macuser, and afpd is running with "-g macuser".  The same
> >problem happens when I log in as a registered user, or regardless of
> >which user/group settings I try for the guest account.
>
> OK, you told us the permissions on the *files* but what permissions
> are on the directory that you're in?

The files and directories have the same ownership and equally-permissive
protection bits.  Here is an actual example:

(bryan/wheel.2@jupiter) /mnt % vl !$
vl /usr/local/net/atalk_files/
total 12
drwxr-xr-x  4 macuser  macuser  512 Oct 22 00:31 .AppleDesktop/
drwxr-xr-x  2 macuser  macuser  512 Oct 22 00:28 .AppleDouble/
drwxr-xr-x  3 macuser  macuser  512 Oct 22 00:30 Movies/
drwxr-xr-x  4 macuser  macuser  512 Oct 22 01:14 Network Trash Folder/
drwxr-xr-x  4 macuser  macuser  512 Oct 22 01:15 Pictures/
drwxr-xr-x  3 macuser  macuser  512 Oct 22 00:28 TheVolumeSettingsFolder/
(bryan/wheel.2@jupiter) /mnt % vl /usr/local/net/atalk_files/.AppleDouble/
total 2
-rwxr-xr-x  1 macuser  macuser  589 Oct 22 01:14 .Parent*
(bryan/wheel.2@jupiter) /mnt %

Then, from the Mac client I try to copy the folder "Bryan Scan 12-27-00"
into the "Pictures" directory (which I created on the UNIX side in
advance).  The copy fails, yet an empty folder is created.  I can
double-click the folder and copy files into it, but can't drag-n-drop the
populated folder in one step:

(bryan/wheel.2@jupiter) /mnt % vl /usr/local/net/atalk_files/Pictures/
total 204
drwxr-xr-x  2 macuser  macuser    512 Oct 22 00:33 .AppleDouble/
drwxr-xr-x  3 macuser  macuser    512 Oct 22 01:16 Bryan Scan 12-27-00/
-rw-r--r--  1 macuser  macuser  55358 Mar  4  2001 birthday_crop.jpg
-rw-r--r--  1 macuser  macuser  46076 Jan 31  2001 closeup-crop.jpg
(bryan/wheel.2@jupiter) /mnt % vl /usr/local/net/atalk_files/Pictures/Bryan\ Scan\ 12-27-00/
total 1040
drwxr-xr-x  2 macuser  macuser     512 Oct 22 01:16 .AppleDouble/
-rw-r--r--  1 macuser  macuser   91548 Dec 27  2000 Christmas-party-2000.jpg
-rw-r--r--  1 macuser  macuser  127054 Dec 27  2000 foo-sheet-1.jpg
-rw-r--r--  1 macuser  macuser   94693 Dec 27  2000 Scan-sheet-1.jpg
-rw-r--r--  1 macuser  macuser  107961 Dec 27  2000 Scan-sheet-2.jpg
-rw-r--r--  1 macuser  macuser   39679 Dec 27  2000 Scan-sheet-3.jpg
-rw-r--r--  1 macuser  macuser   40971 Dec 27  2000 sheet-1.jpg
(bryan/wheel.2@jupiter) /mnt %

BTW, this is all as "guest".  I'll do some more testing tonight when I get
off work and have more energy to throw into this.

thanks,
-bp
--
# bryan at ecst dot csuchico dot edu          Support the American Red Cross
# Software Engineer                               http://www.redcross.org