Solved

chmod and Sun Workshop Teamware

Posted on 2000-02-25
14
512 Views
Last Modified: 2013-12-27
I'm using sccs commands with Sun Workshop Teamware.  I have Unix scripts that I have written for C shell.

How do I configure the file under sccs so that it retains execuatble permissions when I check the file out, and then back in?

Currently I'm doing a chmod +x every time I check the file back in because sccs (at least for now) removes the execute permissions (similar to chmod 444)
0
Comment
Question by:lhgarrett
  • 7
  • 6
14 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2560077
It looks to me that if you change the mode of the sccs file (chmod ugo+x SCCS/s.some-file), then from then on the file will check out as executable.
0
 

Expert Comment

by:cartoon022100
ID: 2562282
Hi,
As you said the execute permissions will not be retained once you check out
A silly answer i can suggest you now to avoid "chmod +x" every time is to write a wrapper or a shell script or a perl script to do the chmod +x for you every time.

This is what i follow now.I also faced the same problem like u.Now the chmod is done automatically by my script every time whne i check out.


Regards,
Inigo


0
 
LVL 40

Expert Comment

by:jlevie
ID: 2562570
Not so fast cartoon... I've just checked what I suggested with Teamware and the executable mode is preserved across checkin/checkout cycles. If your instance is not behaving that way it sounds like an sccs or Teamware bug. Is your's up to date patch wise?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:lhgarrett
ID: 2566365
> write a script to do the chmod +x for you every time

I'd like to allow sccs to maintain the executable mode on a file-by-file basis for me. Ideally, I should only have to set the mode once.
0
 

Author Comment

by:lhgarrett
ID: 2566381
> chmod ugo+x SCCS/s.some-file

Is there an sccs command (or a workspace command) that I should use to perform this function?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2566483
I can't find any sccs command that will do it, nor can I find any way from within Workshop to do it. What I did was to use a terminal window and cd to the "Workspace" directory and run the "chmod ugo +x SCCS/s.some-file" there.

One other thing to note is that if the file is executable when it is first checked in, it retains that mode.
0
 

Author Comment

by:lhgarrett
ID: 2570922
> If your instance is not behaving that way it sounds like an sccs or Teamware bug

My version of sccs only retains the permissions on the SCCS/s.* files. The actual files' execute permission is destroyed (on delget or unedit). I get the same problem from the Teamware GUI, or if I checkout and checkin on the commandline with the following commands:

    % sccs edit filename
    % sccs delget filename

How can I determine which version of sccs I'm using. When I do help from Teamware, I get:

   Teamware 2.0 10/31/96

What version are you using? Thanks!
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2571129
Mine is Teamware 2.1 12/15/98 on Solaris 2.7. Relevant patches installed include:

106748-04 - /usr/ccs/bin/sccs and /usr/ccs/bin/make patch
107354-01 - Patch for Teamware 21

So far as I know you can't ask sccs for it's version. Which Solaris are you using? Knowing the version I can tell you what sccs and Teamware patches exist.
0
 

Author Comment

by:lhgarrett
ID: 2573553
I am running Solaris 2.6:

   % uname -X
   System = SunOS
   Release = 5.6
   KernalID = Generic_105181-05

Thanks!
   
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2580406
I haven't forgotten about this. I've managed to duplicate your problem on a 2.6 system. The interesting thing is that it looks like it may not actually be an sccs problem. I can use the binaries from a 2.7 system (export /usr/ccs from 2.7 where it works correctly & nfs mount it on 2.6) and still have the problem. The only thing that I can see at this point that might explain it is some difference in libc between 2.6 & 2.7.

More soon, I hope...
0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 2598450
I've done everything that I can think of, including bringing a 2.6 box totally up to date w/respect to patches. It just simply doesn't work there. And I found that it doesn't always work on 2.7.

I have found that I can make it work every time on both 2.6 and 2.7 by using sccs binaries from the Solaris 8 beta distribution. As far as I can tell right now, there are no unwelcome side affects from doing so, but obviously I can't make any guarantees.

Hmm, seems like a bug report/feature request to Sun might be in order.
0
 

Author Comment

by:lhgarrett
ID: 2606602
> I've done everything that I can think of, including bringing a 2.6 box totally up to date w/respect to patches

Thanks! I guess that's the way it is... If you have the ability to (or desire to ) write a bug report, I appreciate it.

In the mean time it's appropriate to award points for all of you hard research! Thanks again!
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2607153
I'm in the process of filling a bug report. The initial response was "sccs can't do that, see bug ID nnnnn". Then when I explained that it works in Solaris 8 and that the binaries from 8 worked properly on 2.6 & 2.7, there was this really long pause and an "let me check on that and call you back", so we'll see.
0
 

Author Comment

by:lhgarrett
ID: 2645380
> I'm in the process of filling a bug report

Thanks, I'm glad they are checking into it... From a user's perspective, persistence of execute permissions across checkin/checkout is about as basic as it gets; it should be supported.  :-)
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question