1833875 Members
2096 Online
110063 Solutions
New Discussion

Re: Permissions related

 
SOLVED
Go to solution
Akram Shaik
Frequent Advisor

Permissions related

Hoe to get the following permissions.. Help needed

-r-s--S--T 1 root sys 934 Mar 16 14:37 /opr/sar/exe/VerifyHousekeeping.sh
when everyting is coming your way then you are in the wrong lane
19 REPLIES 19
Marco A.
Esteemed Contributor

Re: Permissions related

That's because it is using sticky bit.
but, what is the problem with it?!

Rgds
Just unplug and plug in again ....
Marco A.
Esteemed Contributor

Re: Permissions related

Patrick Wallek
Honored Contributor
Solution

Re: Permissions related

If you want to change the permission so to a file so they mirror what you see, then do:

chmod 7500

# man chmod for an explanation of the '7500'.
Akram Shaik
Frequent Advisor

Re: Permissions related

I want to apply the same permissions to another file a test file .

Can u explain that
when everyting is coming your way then you are in the wrong lane
Aussan
Respected Contributor

Re: Permissions related

it looks like the SUID , SGID and sticky bit are set on the file

to set the s for user it's setuid
the s for group is setgid

for the T chmod o+t

The tongue weighs practically nothing, but so few people can hold it
Aussan
Respected Contributor

Re: Permissions related

forgot to say you can do it in chmod also

chmod u+s,g+s,o+t testfile
The tongue weighs practically nothing, but so few people can hold it
Akram Shaik
Frequent Advisor

Re: Permissions related

Patrick.

It worked.. Thanks for your support.. Iwillgo tho the manuals for chmod

Full 10 points

TC
when everyting is coming your way then you are in the wrong lane
A. Clay Stephenson
Acclaimed Contributor

Re: Permissions related

Do a man of ls; that will tell you precisely which mode bits are set. In your case, a chmod 7500 filename will do the trick.

For security reasons, if you set the mode to 7500 on a file as a regular user and then chown root the file, the setuid bit is cleared.

I find that the obsolescent numeric mode options are easier and more transportable to Perl than the symbolic chmod options. Man 1 chmod for those details.
If it ain't broke, I can fix that.
Akram Shaik
Frequent Advisor

Re: Permissions related

Hi all

Can the use of these permissions be explained.

What is impact of s
What is impact of S
what is the impact of T
In some cases I have seen "t" in permissions. What is that?
when everyting is coming your way then you are in the wrong lane
A. Clay Stephenson
Acclaimed Contributor

Re: Permissions related

Yes they can be explained. A "man ls" will explain it fully. Now if you need more explanation of the setuid, setgid, and sticky bits (save text image after execution) then a man 2 chmod is a good place to start. You need to learn to read the man pages and pay attention to the "SEE ALSO" sections. If you don't learn these skills, your career in UNIX will be severely limited.
If it ain't broke, I can fix that.
Akram Shaik
Frequent Advisor

Re: Permissions related

Exactly,

I do a man often but search for things which I need to find alone... Reading the whole man page will only workout to grasp the things..

Thanks for your advice Clay. I have been in this field of UNIX(hp) for the past 4 months only.. There are really lots to learn...

when everyting is coming your way then you are in the wrong lane
Marco A.
Esteemed Contributor

Re: Permissions related


Mental note.: Don't post answers to Akram!
*****
I have assigned points to 3 of 14 responses to my questions.
*****
Just unplug and plug in again ....
Akram Shaik
Frequent Advisor

Re: Permissions related

Didnt get you Marco??
when everyting is coming your way then you are in the wrong lane
Steven E. Protter
Exalted Contributor

Re: Permissions related

Shalom,

Read this:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137

The prior post is a complaint about your rate of point assignment. In ITRC thats how we thank each other for help.

http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA1472229&listType=unassigned&forumId=1

Click above if you'd like to go clean up your record.

chmod 3750 or chmod 2750 will set the propertied of all files created in a folder and may be useful to you.

The man pages for ls and such do have very good explanations on what the permission displays mean.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: Permissions related

>In some cases I have seen "t" in permissions.

If there is a "t" in the other field for a symlink, it means transition link. These are removed in 11.31.
Akram Shaik
Frequent Advisor

Re: Permissions related

Hi Steven,

I read the link ITRC Forums Etiquette. Considering this thread as an example there have been answers from many in a short time which solved the purpose.
My queries are should,
1. Should Equal points be given to all memebers who gave the solution?
2. should we not leave the points for answer dropdown left unassigned i.e either points to be assigned or should be 0 points?

Thnx for ur suggestions.

when everyting is coming your way then you are in the wrong lane
Steven E. Protter
Exalted Contributor

Re: Permissions related

Its a matter of personal preference.

I always personally assign 1 point to anyone that makes an effort to answer.

I try and give solution quality answer points in the 8-10 range.

Anything else is subjective, but I do strive for a perfect assignment record. I try and hand out based on the quality and effort of the response.

Regards and thanks much for your attention to these things. It makes ITRC a better place.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Akram Shaik
Frequent Advisor

Re: Permissions related

Thanks for all your suggestions...

Its a gradual process in getting familiar to the do's and dont's here...

Thanks for all your help..

Grz!
Akram
when everyting is coming your way then you are in the wrong lane
Akram Shaik
Frequent Advisor

Re: Permissions related

Thnx
when everyting is coming your way then you are in the wrong lane