Solved

chmod and Sun Workshop Teamware

Posted on 2000-02-25
14
500 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
 

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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now