Topic ".bashrc and a umask default mask"

Author Message
Luke_poland

Guest


When a log on a remote machine eg. Sun Solaris 5.9 with Putty 0.56 my scripts in .bashrc works fine. One line sets the default umask premissions. I am working in a group of people so i need RW/X(for dirs) on group bits of files/dirs (so they can modify them).
When I log with WinSCP on the same machine the .bashrc isn't readed - and group have only RX.
Could you make a Chceckbox to switch to profiles stored in my home dir (default in WinSCP is to use default args with shell).
Please reply.
Pozdro !
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
What protocol do you use? SCP or SFTP? Do you have checked "Set permissions" option or not?
_________________
Martin Prikryl
Guest




prikryl wrote:
What protocol do you use? SCP or SFTP? Do you have checked "Set permissions" option or not?

My point is that this "Set permission" option is GLOBAL. I am actually working on more then one work server - so i would like to choose on which i want the RWX premission for group and on others only RX premisson (or even no premission for group)
Whole point is that this is general setting - but in case of putty which reads the .bashrc file (or other if you use different shell) and sets the premission local to the account i have (not for global).
Thanks for reply.
Greets from Poland.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Putty does not read any file, Putty is "dumb" terminal. WinSCP does not read such files too and it will not. bashrc and similar files are platform specific and must be either automatically read by the platform or ignored. My point was that if the bashrc file is read and reflected by your server, setting "Set permission" may override it. Try to uncheck it.
_________________
Martin Prikryl
Guest




prikryl wrote:
Putty does not read any file, Putty is "dumb" terminal. WinSCP does not read such files too and it will not. bashrc and similar files are platform specific and must be either automatically read by the platform or ignored. My point was that if the bashrc file is read and reflected by your server, setting "Set permission" may override it. Try to uncheck it.

OK sorry for my incorrectness.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License