linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* permissions in a web directory using umask
@ 2003-02-04 13:26 Miguel González Castaños
  0 siblings, 0 replies; 3+ messages in thread
From: Miguel González Castaños @ 2003-02-04 13:26 UTC (permalink / raw)
  To: linux-admin

dear all,

 I have a web directory that is accessed by a group of users. I have
used umask to set the default permissions of that directory. That way
all the users of the group can create new files and directories that
will be accessable by the rest of the users of the same group.

 The problem arises when I want to transfer files to that directory, the
umask is not used and the permissions are set by the client. I am using
a SSH windows client (www.ssh.com) but I have seen that there is the
same problem with ftp clients.

 I have looked around on the web but seems to be a tough problem. I am
wondering if there is any setting in the ssh server or the ssh client
that can bypass this problem. If not, let me know any suggestion in a
less "elegant" way.

 Many thanks in advance

 Miguel




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: permissions in a web directory using umask
       [not found] <C65F89D1AC0BB54B865127151A24DA780E4905D7@nbexchm2.aliant.icn>
@ 2003-02-04 14:22 ` Miguel González Castaños
  2003-02-04 15:21   ` Miguel González Castaños
  0 siblings, 1 reply; 3+ messages in thread
From: Miguel González Castaños @ 2003-02-04 14:22 UTC (permalink / raw)
  To: linux-admin; +Cc: Shaw, Marco

It is what I did, set the SGID bit for that directory. It works with the
new files and directories but
It doesnt work when I transfer a file with sftp for instance.

Thanks

Miguel

"Shaw, Marco" ha escrito:

> SGID (set the GID bit) the directory?
>
> > -----Original Message-----
> > From: Miguel González Castaños [mailto:mgc@tid.es]
> > Sent: Tuesday, February 04, 2003 9:26 AM
> > To: linux-admin@vger.kernel.org
> > Subject: permissions in a web directory using umask
> >
> >
> > dear all,
> >
> >  I have a web directory that is accessed by a group of users.
> > I have used umask to set the default permissions of that
> > directory. That way all the users of the group can create new
> > files and directories that will be accessable by the rest of
> > the users of the same group.
> >
> >  The problem arises when I want to transfer files to that
> > directory, the umask is not used and the permissions are set
> > by the client. I am using a SSH windows client (www.ssh.com)
> > but I have seen that there is the same problem with ftp clients.
> >
> >  I have looked around on the web but seems to be a tough
> > problem. I am wondering if there is any setting in the ssh
> > server or the ssh client that can bypass this problem. If
> > not, let me know any suggestion in a less "elegant" way.
> >
> >  Many thanks in advance
> >
> >  Miguel
> >
> >
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> > linux-admin" in the body of a message to
> > majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: permissions in a web directory using umask
  2003-02-04 14:22 ` Miguel González Castaños
@ 2003-02-04 15:21   ` Miguel González Castaños
  0 siblings, 0 replies; 3+ messages in thread
From: Miguel González Castaños @ 2003-02-04 15:21 UTC (permalink / raw)
  To: linux-admin

After researching a little bit, it seems to be a SSH1 protocol issue.

I had SSH windows client 3.0 version, now update it to 3.2.0 and
because it forces to use SSH2 protocol that doesnt ignore umask
settings.

It seems that it was a bug regarding the use of SSH1 protocol, forcing
the ssh daemon to use SSH2 maybe fix it (not sure yet).

Many thanks

Miguel

Miguel González Castaños ha escrito:

> It is what I did, set the SGID bit for that directory. It works with the
> new files and directories but
> It doesnt work when I transfer a file with sftp for instance.
>
> Thanks
>
> Miguel
>
> "Shaw, Marco" ha escrito:
>
> > SGID (set the GID bit) the directory?
> >
> > > -----Original Message-----
> > > From: Miguel González Castaños [mailto:mgc@tid.es]
> > > Sent: Tuesday, February 04, 2003 9:26 AM
> > > To: linux-admin@vger.kernel.org
> > > Subject: permissions in a web directory using umask
> > >
> > >
> > > dear all,
> > >
> > >  I have a web directory that is accessed by a group of users.
> > > I have used umask to set the default permissions of that
> > > directory. That way all the users of the group can create new
> > > files and directories that will be accessable by the rest of
> > > the users of the same group.
> > >
> > >  The problem arises when I want to transfer files to that
> > > directory, the umask is not used and the permissions are set
> > > by the client. I am using a SSH windows client (www.ssh.com)
> > > but I have seen that there is the same problem with ftp clients.
> > >
> > >  I have looked around on the web but seems to be a tough
> > > problem. I am wondering if there is any setting in the ssh
> > > server or the ssh client that can bypass this problem. If
> > > not, let me know any suggestion in a less "elegant" way.
> > >
> > >  Many thanks in advance
> > >
> > >  Miguel
> > >
> > >
> > >
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe
> > > linux-admin" in the body of a message to
> > > majordomo@vger.kernel.org More majordomo info at
> > http://vger.kernel.org/majordomo-info.html
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-04 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-04 13:26 permissions in a web directory using umask Miguel González Castaños
     [not found] <C65F89D1AC0BB54B865127151A24DA780E4905D7@nbexchm2.aliant.icn>
2003-02-04 14:22 ` Miguel González Castaños
2003-02-04 15:21   ` Miguel González Castaños

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).