Re: [U2] Question about umask
We specifically changed our client code to always call our "UVCS" login subroutine when it first connects. This subroutine then does all the necessary environment massaging and checking to ensure the connection is valid and the environment is right. If you are unable to change your client code to do this, then the only other way is to change the "umask" within the unix user profile of the user that runs the unix "unirpc" process (normally either root or uniadm). If this is the root user you need to be VERY careful about changing umask settings, even to the point of considering changing UV to use a non-root user as the UV administrator user and then changing this user's unix profile. Regards, Gregor From: Augusto Alonso [mailto:aalo...@quiter.com] Sent: Friday, 21 May 2010 10:21 AM To: gregor.sc...@pentanasolutions.com; U2 Users List Subject: Re: [U2] Question about umask Hi Gregor. How do you make the call to this routine? Is it made on the server (a PAragraph or something), or is it made by the client? Thanks -- Augusto Alonso 2010/5/21 Gregor Scott We had the same problem. We had to change all our RPC connection logic so the first thing it does is to run a function (a "logon" program for UVCS connections) equivalent to the UV.LOGIN so we could trigger the execution of the UMASK for the duration of the RPC connection to UV. This works well for us, and we no longer have the issues of incorrect permissions for created files. Gregor -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Augusto Alonso Sent: Friday, 21 May 2010 4:14 AM To: U2 Users List Subject: [U2] Question about umask Hi. Does anyone know how to change the default UMASK (022) inside a RPC connection? Our UV.LOGIN has a sentence: UMASK 002 and it works from telnet connections. But if I do a EXECUTE "CREATE.FILE x" from inside a RPC connection, the permissions of the new file are "-rw-r--r--". Regards -- Augusto Alonso ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users -- Message protected by DealerGuard: e-mail anti-virus, anti-spam and content filtering. http://www.pentanasolutions.com Click here to report this message as spam: https://login.mailguard.com.au/report/1zVek3cTyU/1q3yxsfHme6B6P9ROLUMBr/0.6 ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _ Message protected by DealerGuard: e-mail anti-virus, anti-spam and content filtering. http://www.pentanasolutions.com Report <https://login.mailguard.com.au/report/1zVkQ9dj0o/6IayR89SiiHahPm3fsjela/0.6 02> this message as spam ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Question about umask
Hi Gregor. How do you make the call to this routine? Is it made on the server (a PAragraph or something), or is it made by the client? Thanks -- Augusto Alonso 2010/5/21 Gregor Scott > We had the same problem. > We had to change all our RPC connection logic so the first thing it does is > to run a function (a "logon" program for UVCS connections) equivalent to > the > UV.LOGIN so we could trigger the execution of the UMASK for the duration of > the RPC connection to UV. > This works well for us, and we no longer have the issues of incorrect > permissions for created files. > > > Gregor > > -Original Message- > From: u2-users-boun...@listserver.u2ug.org > [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Augusto Alonso > Sent: Friday, 21 May 2010 4:14 AM > To: U2 Users List > Subject: [U2] Question about umask > > Hi. > > Does anyone know how to change the default UMASK (022) inside a RPC > connection? > > Our UV.LOGIN has a sentence: > > UMASK 002 > > and it works from telnet connections. > But if I do a EXECUTE "CREATE.FILE x" from inside a RPC connection, > the > permissions of the new file are "-rw-r--r--". > > Regards > -- > Augusto Alonso > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > -- > Message protected by DealerGuard: e-mail anti-virus, anti-spam and content > filtering. > http://www.pentanasolutions.com > > Click here to report this message as spam: > https://login.mailguard.com.au/report/1zVek3cTyU/1q3yxsfHme6B6P9ROLUMBr/0.6 > > > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Question about umask
We had the same problem. We had to change all our RPC connection logic so the first thing it does is to run a function (a "logon" program for UVCS connections) equivalent to the UV.LOGIN so we could trigger the execution of the UMASK for the duration of the RPC connection to UV. This works well for us, and we no longer have the issues of incorrect permissions for created files. Gregor -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Augusto Alonso Sent: Friday, 21 May 2010 4:14 AM To: U2 Users List Subject: [U2] Question about umask Hi. Does anyone know how to change the default UMASK (022) inside a RPC connection? Our UV.LOGIN has a sentence: UMASK 002 and it works from telnet connections. But if I do a EXECUTE "CREATE.FILE x" from inside a RPC connection, the permissions of the new file are "-rw-r--r--". Regards -- Augusto Alonso ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users -- Message protected by DealerGuard: e-mail anti-virus, anti-spam and content filtering. http://www.pentanasolutions.com Click here to report this message as spam: https://login.mailguard.com.au/report/1zVek3cTyU/1q3yxsfHme6B6P9ROLUMBr/0.6 ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Question about umask
>>and it works from telnet connections. >>But if I do a EXECUTE "CREATE.FILE x" from inside a RPC connection, the >>permissions of the new file are "-rw-r--r--". The EXECUTE spawns a shell that might be owned by another user like system, I'm not sure about that. Whoever owns the shell is whose umask will be applied. Also I believe the permissions of the parent directory where the file is created can affect the permissions of the created file, so the 002 umask could be working correctly depending on the permissions of the directory where it is created. Charles Shaffer Senior Analyst NTN-Bower Corporation ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Question about umask
Augusto: Can't say for sure about UniVerse, but in UniData a UO connection runs the globally cataloged program "UOLOGIN", not the "LOGIN" paragraph. 1) I'm not sure if that's the way UniVerse operates, 2) When you say an RPC connection I'm not sure you mean UniObjects, which connects via the RPC service, 3) I'm not sure a UMASK can be changed at that level. HTH, but maybe not... Bill Augusto Alonso said the following on 5/20/2010 11:13 AM: Hi. Does anyone know how to change the default UMASK (022) inside a RPC connection? Our UV.LOGIN has a sentence: UMASK 002 and it works from telnet connections. But if I do a EXECUTE "CREATE.FILE x" from inside a RPC connection, the permissions of the new file are "-rw-r--r--". Regards -- Augusto Alonso ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Question about umask
When it comes to setting up umasks on a system I prefer to set the default in the /etc/profile so that all who login in get this as default. Then anybody else who needs a different umask set in their /home/username/.profile -Dan -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Augusto Alonso Sent: Thursday, May 20, 2010 2:14 PM To: U2 Users List Subject: [U2] Question about umask Hi. Does anyone know how to change the default UMASK (022) inside a RPC connection? Our UV.LOGIN has a sentence: UMASK 002 and it works from telnet connections. But if I do a EXECUTE "CREATE.FILE x" from inside a RPC connection, the permissions of the new file are "-rw-r--r--". Regards -- Augusto Alonso ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] Question about umask
Hi. Does anyone know how to change the default UMASK (022) inside a RPC connection? Our UV.LOGIN has a sentence: UMASK 002 and it works from telnet connections. But if I do a EXECUTE "CREATE.FILE x" from inside a RPC connection, the permissions of the new file are "-rw-r--r--". Regards -- Augusto Alonso ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users