Michael's advice on how to set the file permissions are exactly right.

> The biggest PITA with using RDS on *nix is that it always sets
> permissions for new files as 644, which means in order to edit
> them outside of RDS, you've got to log in as superuser and change
> the permissions. I've seen a lot of people ask Allaire how to change
> this, but I've never seen Allaire answer.

The SP1 release fixes this bug, which I have posted about on the
Allaire forums.

Please see the SP1 release notes here:
  http://www.allaire.com/handlers/index.cfm?id=17509

>From the notes:

On Unix, the ColdFusion RDS service now creates files with file 
permissions of 644 (owner read/write, group and other read). It will no 
longer turn on the write permissions when saving an existing file. In 
addition, you can set the environment variable CFRDS_CREATION_MODE in
the  ColdFusion start script to the (octal) file permissions you would
like  new files to have when created via RDS. See the chmod(1) man page
for  details on how to specify octal permission modes. When adding 
CFRDS_CREATION_MODE to the start script, don't forget to add this 
variable to the VAR_LIST variable. [18136] 


-- 
Tom Jordahl                     [EMAIL PROTECTED]
Allaire Development             http://www.allaire.com

Michael Sheldon wrote:
> 
> >>Nobody is the group owner but does this group has write permission...Do a
> chmod 755 to the file to enable rwx at any level.
> 
> Cripes! don't do that! First of all, that is not rwx for all, that's
> rwxr-xr-x
> 
> Second, CF templates do *not* need to be executable, and therefore *should*
> not.
> 
> If 'nobody' is the owner, then the files can be 644 (rw-r--r--)
> 
> If 'nobody' is a member of the group owner, then the files can be 664
> (rw-rw-r--)
> 
> If 'nobody' is none of these, the the files can be 666 (rw-rw-rw-)
> 
> Remember that with security, permissions should always be set to the *most*
> restrictive setting that allows you to do what you need.
> 
> The biggest PITA with using RDS on *nix is that it always sets permissions
> for new files as 644, which means in order to edit them outside of RDS,
> you've got to log in as superuser and change the permissions. I've seen a
> lot of people ask Allaire how to change this, but I've never seen Allaire
> answer.
> 
> Michael J. Sheldon
> http://www.desertraven.com/
> Make a fast friend, adopt a greyhound!
> 
> -----Original Message-----
> From: Ernesto Vargas [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 01, 2000 09:30
> To: CF-Linux
> Subject: RE: Help Request - CF RDS does not have write permissions
> 
> Nobody is the group owner but does this group has write permission...Do a
> chmod 755 to the file to enable rwx at any level.
> 
> -----Original Message-----
> From: Tim Storm [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 01, 2000 11:56 AM
> To: CF-Linux
> Subject: Help Request - CF RDS does not have write permissions
> 
> I tried using CF Studio's RDS capabilities with Linux CF451 server for the
> first time - I'm able to read files fine, but when I tried to edit the file
> and save it back to the server, I received the following error:
> 
> Error attempting to open file:
> /home/httpd/html/index.cfm. <p>
> Error = Tried to open read-only file for writing, or file's sharing mode
> does not allwo specified operations, or given path is directory.
> 
> I have CFserver running as user "Nobody", do I need to change permissions on
> these files to allow editing of files through studio/rds?  If so, a quickie
> example of how to do so would be appreciated.
> 
> Tim Storm
> Linux Newbie Wannabe
> FatWallet.Com
> 
> ----------------------------------------------------------------------------
> --
> Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> ----------------------------------------------------------------------------
> --
> Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
> 
> ------------------------------------------------------------------------------
> Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to