ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Doubt Regarding the Writing a file with 777 permission

Post new topic  Reply to topic
 Doubt Regarding the Writing a file with 777 permission « View previous topic :: View next topic » 
Author Message
namakkal
PostPosted: Thu Jun 04, 2009 1:46 am    Post subject: Doubt Regarding the Writing a file with 777 permission Reply with quote

Novice

Joined: 06 Feb 2009
Posts: 19

Hi,

can any one please tell me how to set the all permission(read -Write-delete-777) to file while writing the file using FileOutput node.

Regards
Sats
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Thu Jun 04, 2009 7:50 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

At the command prompt type
Code:
man uumask

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
AkankshA
PostPosted: Thu Jun 04, 2009 8:54 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

fjb_saper wrote:
At the command prompt type
Code:
man [b]uu[/b]mask


oopsss

I guess you meant
Code:
man umask



_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Thu Jun 04, 2009 9:04 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

AkankshA wrote:
fjb_saper wrote:
At the command prompt type man uumask


oopsss

I guess you meant
Code:
man umask


Evidently... just shows I'm knowledgeable enough in Unix to be dangerous...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Fri Jun 05, 2009 12:08 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

I feel the need to point out that this solution is a UNIX one not a Broker one, will not affect just the files written by the File Output node but any file subject to the umask.

Possibly important to the original poster. Possibly irrelevant.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fitzcaraldo
PostPosted: Thu Nov 12, 2009 6:26 pm    Post subject: Reply with quote

Voyager

Joined: 05 May 2003
Posts: 98

I'd like to revive this thread..

We are using the FileOutput node on z/OS and all files are written with 666 permissions which the security folks have deemed unacceptable.

I understand that we can set umask for the broker ID but am concerned about the implications this may have for broker operation.

Has anyone had any experience setting umask to solve this problem (on any platform)?
Back to top
View user's profile Send private message
sarathmattam
PostPosted: Fri Nov 13, 2009 5:42 am    Post subject: Can we use a shell script ?? Reply with quote

Voyager

Joined: 05 Sep 2008
Posts: 94

Am afraid whether my understanding is correct or not.

But if the file delivery is not an online one , then i think u can make use of a small shell script ..
Back to top
View user's profile Send private message
rajparekh08
PostPosted: Mon Nov 16, 2009 10:09 pm    Post subject: Reply with quote

Acolyte

Joined: 21 Sep 2009
Posts: 58
Location: India- Bagalore

If it is on unix environment,
then you can use the following command:
chmod "file name" "permission"
like
chomod 755 example.txt
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
smdavies99
PostPosted: Mon Nov 16, 2009 10:55 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

rajparekh08 wrote:
If it is on unix environment,
then you can use the following command:
chmod "file name" "permission"
like
chomod 755 example.txt


It should be

Code:
chmod 755 example.txt


However you are making the file executable. Do you really want to do that? I'm sure there is a more suitable mask value? Perhaps 666 ( -rw-rw-rw )
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Doubt Regarding the Writing a file with 777 permission
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.