Unix Technical Forum

dtpad and file permissions

This is a discussion on dtpad and file permissions within the comp.unix.solaris forums, part of the Solaris Operating System category; --> I have a Solaris 8 machine where, if you load a file into dtpad and save the file, dtpad ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-06-2008, 08:36 AM
gusmeister
 
Posts: n/a
Default dtpad and file permissions

I have a Solaris 8 machine where, if you load a file into dtpad and save the
file, dtpad will change the file permissions (based on the current umask).
For example rwxr-xr-x would become rw-r--r--. Does anyone know why?

Here's some more info:
- This happens only with dtpad; vi works fine
- 'dtpad -standAlone' does not work either. 'ttsession -c' does not fix
the problem either.
- It happens on only one machine; the other Solaris 8 machines work fine.
The OS patches may be different.
- A quick google shows that I'm not only one with this problem but nobody
has posted a solution.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-06-2008, 08:36 AM
Neil W Rickert
 
Posts: n/a
Default Re: dtpad and file permissions

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"gusmeister" <gusmeister_NOSPAM_@sympatico.ca> writes:

>I have a Solaris 8 machine where, if you load a file into dtpad and save the
>file, dtpad will change the file permissions (based on the current umask).
>For example rwxr-xr-x would become rw-r--r--. Does anyone know why?


When you save, it creates a new file, then renames that to the old
name. This provides the ultimate in safety. In addition to possibly
changing permissions, the inode number will change, and hard links
will be broken.

>Here's some more info:
> - This happens only with dtpad; vi works fine


The difference is that vi saves into the same file, rather than into
a new file. While slightly riskier, this preserves inode,
permissions, and hard links.

> - 'dtpad -standAlone' does not work either. 'ttsession -c' does not fix
>the problem either.


I'm not sure why you would expect those to have any effect on your
"problem".

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (SunOS)

iD8DBQFAPrbKvmGe70vHPUMRArHkAKCk2GjompAjAJ28QL3wHq WLK8JQBQCg1H2A
CsbEjOU1QPO15C97c9LxGPw=
=++ZJ
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-06-2008, 08:36 AM
gusmeister
 
Posts: n/a
Default Re: dtpad and file permissions

Neil W Rickert <rickert+nn@cs.niu.edu> wrote:
> When you save, it creates a new file, then renames that to the old
> name. This provides the ultimate in safety. In addition to possibly
> changing permissions, the inode number will change, and hard links
> will be broken.


Thanks for your response. I've been using dtpad since 1996 and I have never
observed this behaviour. This problem occurs on only one machine.
Besides, a good editor should not change the original permissions of a file.
At the moment, dtpad is converting my Perl scripts to non-executables.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-06-2008, 08:36 AM
Martin Paul
 
Posts: n/a
Default Re: dtpad and file permissions

gusmeister <gusmeister_NOSPAM_@sympatico.ca> wrote:
> I have a Solaris 8 machine where, if you load a file into dtpad and save the
> file, dtpad will change the file permissions (based on the current umask).
> For example rwxr-xr-x would become rw-r--r--. Does anyone know why?
>
> - It happens on only one machine; the other Solaris 8 machines work fine.
> The OS patches may be different.


Look especially for patch 108714 - according to the README it's
supposed to fix this problem.

After you install the patch, make sure that all dtpad processes
(esp. dtpad -server) are stopped before re-trying whether the
problem is fixed.

mp.
--
Systems Administrator | Institute for Software Science | Univ. of Vienna
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-06-2008, 08:44 AM
gusmeister
 
Posts: n/a
Default Re: dtpad and file permissions

Martin Paul <map@par.univie.ac.at> wrote:
> Look especially for patch 108714 - according to the README it's
> supposed to fix this problem.


Thanks for your help. The patch you mentioned fixed the problem.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:59 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com