tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: honoring gid of a directory for new file


From: Michael Albinus
Subject: Re: honoring gid of a directory for new file
Date: Sun, 09 Oct 2011 11:01:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

Paul Northug <address@hidden> writes:

> When tramp is editing a new file over ssh, it does not seem to honor
> the group id of the containing directory.
>
> Here the directory is setgid to htpcgroup.
>
> address@hidden:~/test$ ls -al
>
> drwxrwsrwx  9 htpcuser htpcgroup 4096 2011-10-08 13:41 .
> drwxrwsrwx 14 htpcuser htpcgroup 4096 2011-10-08 05:54 ..
>
> address@hidden:~/test$ touch test; ls -al
>
> drwxrwsrwx  9 htpcuser htpcgroup 4096 2011-10-08 13:41 .
> drwxrwsrwx 14 htpcuser htpcgroup 4096 2011-10-08 05:54 ..
> -rw-rw-r--  1 paul     htpcgroup    0 2011-10-08 13:42 test
>
> But a new file created with tramp, test.tramp:
>
> drwxrwsrwx  9 htpcuser htpcgroup 4096 2011-10-08 13:41 .
> drwxrwsrwx 14 htpcuser htpcgroup 4096 2011-10-08 05:54 ..
> -rw-rw-r--  1 paul     htpcgroup    0 2011-10-08 13:42 test
> -rw-rw-r--  1 paul     paul         3 2011-10-08 07:56 test.tramp
>
> sshfs preserves the group id. Can this behavior be modified?

This is likely a mount option of sshfs (don't know). For new files,
Tramp uses the primary group of the user on the remote host. Similar as
applying "touch test" as user "paul" on the remote host.

> Thanks,
> Paul.

Best reegards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]