AFP mount + Chown/Chgrp respecting


 
Thread Tools Search this Thread
Operating Systems OS X (Apple) AFP mount + Chown/Chgrp respecting
# 1  
Old 04-18-2011
AFP mount + Chown/Chgrp respecting

Hello all...

Does anyone know how to make an AFP mount of home directories (/Volumes/users off of another server) so that any users doing an ssh login retain write permission to their individual folders, read-write permissions to folders chowned to appropriate group... and so that newly created files are done so with their own user name?

Thanks for any suggestions.

/shawn

p.s. I am able to mount as a specific user, but any simultaneously logged-in user is not able to write into their own folder then (as the mount is done in the name of the other user). Mounting as 'admin' doesn't help. Mounting as 'root' isn't available (I can sudo mount... but not login as root.. but sudoing the mount doesn't help either ).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Chgrp failed on NAS mounted

Hi, I am facing chgrp issue for a directory on a NAS mounted partation. issue details : user1 belongs to two groups grp1(primary) and grp2(secondary) not able to change directory group to secondary. WORKING on /tmp #mkdir /tmp/a #ls -ld /tmp/a drwxr-xr-x 2 user1 grp1 117 Mar 24... (7 Replies)
Discussion started by: naveen.surisett
7 Replies

2. Red Hat

Can't chgrp. Error - chgrp: changing group of `<file>': Invalid argument

I found that I cannot chgrp for some reason with error: chgrp: changing group of `<file>': Invalid argument This happens on all NFS mounted disks on client machines. We use AD (not my call) for authentication and it also provides groups. We have a NFS server running Scientific Linux 6.3... (1 Reply)
Discussion started by: venmx
1 Replies

3. Shell Programming and Scripting

How to convert AFP files to Text?

Hi I am trying to locate a unix utility to convert AFP files to readable text format There are plenty of windows tools, but I need a unix equivilant. Can anyone help? Sample Windows tool that works: AFP To Text Converter 2 2 Download page - AFP To Text Converter Shareware Download ... (5 Replies)
Discussion started by: frustrated1
5 Replies

4. IP Networking

IPV6 very slow, not respecting MTU??

Hi, Curious problem with IPV6. Situation is wget request from squid proxy via intermediate router. With IPV4 (wget -4) speed is ~100MB/sec. With IPV6 (wget -6) it drops to 30KB/sec. Examining the traffic with tcpdump shows that the squid box is regularly sending out over-sized packets (>MTU)... (5 Replies)
Discussion started by: jusme
5 Replies

5. Shell Programming and Scripting

Can't chgrp, chown on Linux

I have a problem on Linux wherein it doesn't allow me to use the chown and chgrp even if I am the owner of the file. Is this one of the Linux limitations? BTW, I can use chmod. (4 Replies)
Discussion started by: Jin_
4 Replies

6. OS X (Apple)

AFP mounting Errors

Hello All, I've have created a script today that will mount my shared afp volumes to my system successfully, however, I've come across a very interesting issue that I can't seem to get by, so maybe someone will be kind enough to lend some advice. I am working on OS X 10.6.4 and using the... (1 Reply)
Discussion started by: sbjones25
1 Replies

7. Shell Programming and Scripting

sed ignoring case for search but respecting case for subtitute

Hi I want to make string substitution ignoring case for search but respecting case for subtitute. Ex changing all occurences of "original" in a file to "substitute": original becomes substitute Origninal becomes Substitute ORIGINAL becomes SUBSTITUTE I know this a little special but it's not... (1 Reply)
Discussion started by: kmchen
1 Replies

8. UNIX for Dummies Questions & Answers

Chgrp and Chown ???

Hi Can anybody please let me know the usage of Chgrp command with an example??? Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

9. UNIX for Advanced & Expert Users

Extracting data from an AFP file

Hello Anybody any idea how to extract data from an AFP file using UNIX commands? I could make the AFP to PDF or if there is any other to change it to to make the extraction simplar. I'm open to ideas. Cheers (4 Replies)
Discussion started by: Dolph
4 Replies

10. UNIX for Advanced & Expert Users

AFP & FTP Bandwidth Monitoring?

Is there a way to monitor FTP and AFP bandwidth on a per user basis? AFP = AppleFilesharingProtocol, and by monitor, I don't mean graphs, I mean getting raw byte counts I can use in my scripts any way I choose. I am attempting to use mod_watch to monitor virtual domain bandwidth usage, but I really... (0 Replies)
Discussion started by: l008com
0 Replies
Login or Register to Ask a Question
MOUNT_AFP(8)						    BSD System Manager's Manual 					      MOUNT_AFP(8)

NAME
mount_afp -- mount an afp (AppleShare) filesystem SYNOPSIS
mount_afp [-i] [-s] [-k] [-o options] afp_url node DESCRIPTION
The mount_afp command mounts the AFP volume denoted by the afp_url afp://[user[;AUTH=uamname][:password]@]host[:port]/volumename at the mount point indicated by node. This command is normally executed by mount(8) when the -t afp option is used. If the -i option is not used, all the required information to establish a login to the remote server must be available in the afp URL, including username & password if needed. The arguments and options are: -i Interactive mode, you are prompted for the password if you did not supply one in the url. -s Soft mount (default). Network errors, e.g. timeouts, will be retried for a much shorter amount of time. If the network errors per- sist, then the mount will be force unmounted. -k Hard mount. Network errors, e.g. timeouts, will be retried for an extended amount of time. If the network errors persist, then the mount will be force unmounted. -o Options passed to mount(2) are specified with the -o option followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings. Additional options supported by the AFP Client are as follows: nobrowse Indicate to the Carbon subsystem that this volume is not to be displayed to the user. automounted Set flags on the mountpoint to indicate that the volume has been mounted by the automounter. afp_url There are two forms of afp URL, one for TCP/IP and one for AppleTalk: afp://[user[;AUTH=uamname][:password]@]host[:port]/volume afp:/at/[user[;AUTH=uamname][:password]@]servername[:zonename]/volume Denotes the afp server and sharepoint to mount. It may also contain the username & password required to log into the server. uamname is the protocol name of the authentication method. If port is not specified, then port 548 is used. node Path to mount point, which must be a directory that the user has write permissions for. EXAMPLES
The following example illustrates how to mount the afp volume server.company.com/volumename/ at the mount point /Volumes/mntpnt: mkdir /Volumes/mntpnt mount_afp afp://username:userpass@server.company.com/volumename/ /Volumes/mntpnt This example shows the proper url to use to mount the volume guestVolume from the afp server myserver as guest (if no uam and no username, then use guest uam): mkdir /Volumes/guest mount_afp "afp://myserver/guestVolume" /Volumes/guest This example shows the proper url to use to mount the volume myVolume from the afp server myserver using Kerberos authentication: mkdir /Volumes/myVolume mount_afp "afp://;AUTH=Client%20Krb%20v2@myserver/myVolume" /Volumes/myVolume SEE ALSO
mount(2), unmount(2), mount(8) HISTORY
The mount_afp command first appeared Mac OS X version 10.0. Kerberos authentication was added in Mac OS X version 10.2 RETURN VALUES
0 mount_afp successfully mounted the volume directory. [ENODEV (19)] The server volume could not be mounted by mount_afp because the server was not found or because the sharepoint does not exist, or because node does not have proper access. [EACCES (13)] The volume could not be mounted by mount_afp because the user did not provide proper authentication credentials. [ENOTDIR (20)] The volume could not be mounted by mount_afp because the mountpoint was not a directory. Mac OS X May 8, 2002 Mac OS X