set default file permissions for a directory
Numberwhun
numberwhun at comcast.net
Sun Dec 11 09:17:01 EST 2005
I have to agree with Jason on both counts. I use scp on the Unix system
at work and when you ar specifying where you want to transfer to you
need to spefify the following:
user@<ip or machine name>:/directory/on/other/machine
If you don't put the users it will default to using the user you are on
the local machine but will ask you for the password. If you don't
transfer certain files as the correct user, then permissions are not
correctly set. I would say the .profile(s) are read and used.
Regards,
Jeff
Jason Stephenson wrote:
> In your first post, you said that you can set the umask to 002. Have
> you tried that?
>
> I'm pretty sure that even using scp actually "logs in" the user enough
> so that the shell environment is set up and things like the umask set
> in .profile or whatever for their shell is sourced and does work. At
> least it does seem to in my experience.
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
>
>
More information about the gnhlug-discuss
mailing list