Ask a Question related to Sun Solaris, Design and Development.
-
Kishore #1
Changing permissions of ps command
Hi All,
I have a problem here, i had tried to change the prmissions of command
ps to 777 from 555. But the permissions of few other files are getting
changed. I had noticed that all these files are hard links and their
inode is same. Probably because of this it is creating the problem.
But, the output of each program is different.
Anyways, how do i set permission for only this files. Your suggestions
will be highly Appreciated.
Regards,
Kishore.
Kishore Guest
-
Changing 'Read Only' permissions....
Hi i think i need to somehow change the read only permission with flash 9...is there a way to do this? -
Contribute permissions vs. network permissions
We are currently implementing Contribute in a website that is highly centralized, with approximately 50 department-level CT writers and 4 CT... -
Changing NTFS permissions in ASP.NET
Hi. Some related questions were discussed here, but my question is some different. I'm writing the project, the metter of it can be expressed... -
changing the default folder for the "open file" command
Is there any way to change the default folder that opens on the "open file" command - to a folder other than "My Documents"? I am using XP... -
Changing folder permissions remotely
Hi, can anyone tell me how to change the folder permissions (win2k , winxp) remotely ? can it be done with a script / batch file ? appreciate if... -
John Howells #2
Re: Changing permissions of ps command
Kishore wrote:Go back a stage, and tell us what you are trying to achieve, and why you>
> Hi All,
> I have a problem here, i had tried to change the prmissions of command
> ps to 777 from 555. But the permissions of few other files are getting
> changed. I had noticed that all these files are hard links and their
> inode is same. Probably because of this it is creating the problem.
> But, the output of each program is different.
> Anyways, how do i set permission for only this files. Your suggestions
> will be highly Appreciated.
think adding write permissions to ps for all users will help.
John Howells
John Howells Guest
-
Nobody #3
Re: Changing permissions of ps command
Please bare in mind that ps uses setuid bit.. for having root acces
Watch out with changing that..
"Kishore" <vkkumar@indiatimes.com> wrote in message
news:7d34fc3.0307232318.2d0da27f@posting.google.co m...> Hi All,
> I have a problem here, i had tried to change the prmissions of command
> ps to 777 from 555. But the permissions of few other files are getting
> changed. I had noticed that all these files are hard links and their
> inode is same. Probably because of this it is creating the problem.
> But, the output of each program is different.
> Anyways, how do i set permission for only this files. Your suggestions
> will be highly Appreciated.
> Regards,
> Kishore.
Nobody Guest
-
James Carlson #4
Re: Changing permissions of ps command
"Nobody" <nobody@nix.nl> writes:
/usr/ucb/ps does that (behind a wrapper) for access to environment> Please bare in mind that ps uses setuid bit.. for having root acces
> Watch out with changing that..
variables, but since /proc was integrated into Solaris, regular
/usr/bin/ps doesn't need to be setuid.
--
James Carlson, Solaris Networking <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.234W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.497N Fax +1 781 442 1677
James Carlson Guest
-
James Carlson #5
Re: Changing permissions of ps command
[email]vkkumar@indiatimes.com[/email] (Kishore) writes:
Uh ... why? Why would you want all users on your system to be able to> I have a problem here, i had tried to change the prmissions of command
> ps to 777 from 555.
write to this file? That seems like a really bad thing to do.
It's a bit of magic. ;-}> But the permissions of few other files are getting
> changed. I had noticed that all these files are hard links and their
> inode is same. Probably because of this it is creating the problem.
> But, the output of each program is different.
They're all hard links to 'isaexec' which looks at the kernel
architecture and runs `isainfo -k`/argv[0] -- so what really gets run
on a 64 bit kernel is /usr/bin/sparcv9/ps.
--
James Carlson, Solaris Networking <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.234W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.497N Fax +1 781 442 1677
James Carlson Guest
-
ragnus2003 #6
Re: Changing permissions of ps command
Hi,
The system recognise different command (ps ,w ... there is 32 command or
more...)
by the name of the command and her directory.
To attribute permissions only to PS command who can copy this command and
after you
change permissions.
# rm ps
# cp w ps
# chmod 555 ps
bye...
"Kishore" <vkkumar@indiatimes.com> a écrit dans le message de news:
[email]7d34fc3.0307232318.2d0da27f@posting.google.com[/email]...> Hi All,
> I have a problem here, i had tried to change the prmissions of command
> ps to 777 from 555. But the permissions of few other files are getting
> changed. I had noticed that all these files are hard links and their
> inode is same. Probably because of this it is creating the problem.
> But, the output of each program is different.
> Anyways, how do i set permission for only this files. Your suggestions
> will be highly Appreciated.
> Regards,
> Kishore.
ragnus2003 Guest
-
Kishore #7
Re: Changing permissions of ps command
Hello All,
Thanks for your responses, It was just a coincidense i had mentioned
it as 777 for that sense it could be 550 also.
Anyways, i did a work arround for this. i.e.,
copied the file to some other file and moved back to orginal file name
( Then its inode number got changed, hence iam able to change the
permissions).
Do anybody anticipate any problem by doing like this.
Regards,
Kishore
Kishore Guest
-
Chris Mattern #8
Re: Changing permissions of ps command
Kishore wrote:
(slaps forehead) I was afraid he was going to have this flash of genius...> Hello All,
>
> Thanks for your responses, It was just a coincidense i had mentioned
> it as 777 for that sense it could be 550 also.
> Anyways, i did a work arround for this. i.e.,
> copied the file to some other file and moved back to orginal file name
> ( Then its inode number got changed, hence iam able to change the
> permissions).
> Do anybody anticipate any problem by doing like this.
>
*Yes*, this is a problem. Rearranging basic system components at
random like this is *never* a good idea. Among other problems,
you have ensured that any attempts to patch or upgrade this part
of the system will break.
You have yet to explain *why* you want to change the permissions of
ps but not the permissions of the things hard-linked to it. Generally,
messing about like this in /usr/bin/ is bad idea unless you a) know
what you're doing and b) have a specific reason *why* you want to do
it.
Chris Mattern
Chris Mattern Guest
-
Chris Mattern #9
Re: Changing permissions of ps command
ragnus2003 wrote:
ragnus, this is a really *bad* idea. Rearranging /usr/bin/ at random like this> Hi,
> The system recognise different command (ps ,w ... there is 32 command or
> more...)
> by the name of the command and her directory.
> To attribute permissions only to PS command who can copy this command and
> after you
> change permissions.
> # rm ps
> # cp w ps
> # chmod 555 ps
>
makes patchadd cry.
Chris Mattern
Chris Mattern Guest
-
Barry Margolin #10
Re: Changing permissions of ps command
In article <3F219323.3090306@gwu.edu>, Chris Mattern <syscjm@gwu.edu> wrote:
My guess is that he's trying to address the problem of sensitive data in>You have yet to explain *why* you want to change the permissions of
>ps but not the permissions of the things hard-linked to it. Generally,
>messing about like this in /usr/bin/ is bad idea unless you a) know
>what you're doing and b) have a specific reason *why* you want to do
>it.
command line arguments, which other users can see with ps. So he's
restricting access to ps.
But since the *real* ps is the architecture-specific one that this
dispatches to, that's the program whose permissions he should be changing.
In general, if a program doesn't have setuid permission, removing access to
it won't solve a security issue like this, since anything it can do can be
done by a user-written program or script.
--
Barry Margolin, [email]barry.margolin@level3.com[/email]
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Barry Margolin Guest
-
Chris Thompson #11
Re: Changing permissions of ps command
In article <HQgUa.406$0z4.71@news.level3.com>,
Barry Margolin <barry.margolin@level3.com> wrote:
[...]He is attempting to *restrict* access by changing the permissions to 777?>My guess is that he's trying to address the problem of sensitive data in
>command line arguments, which other users can see with ps. So he's
>restricting access to ps.
If so, I think he is in serious need of a Unix 101 remedial course ...
Chris Thompson
Email: cet1 [at] cam.ac.uk
Chris Thompson Guest
-
ragnus2003 #12
Re: Changing permissions of ps command
Yes i'ts true....
But what is the solution for this problem ???
if you set up permission to on comand and not hard links ???
Vince
"Chris Mattern" <syscjm@gwu.edu> a écrit dans le message de news:
[email]3F2193A4.6020108@gwu.edu[/email]...and> ragnus2003 wrote:> > Hi,
> > The system recognise different command (ps ,w ... there is 32 command or
> > more...)
> > by the name of the command and her directory.
> > To attribute permissions only to PS command who can copy this commandthis> ragnus, this is a really *bad* idea. Rearranging /usr/bin/ at random like> > after you
> > change permissions.
> > # rm ps
> > # cp w ps
> > # chmod 555 ps
> >> makes patchadd cry.
>
> Chris Mattern
>
ragnus2003 Guest
-
Chris Mattern #13
Re: Changing permissions of ps command
ragnus2003 wrote:
The answer is step back and ask, "Why are you trying to do this?"> Yes i'ts true....
> But what is the solution for this problem ???
> if you set up permission to on comand and not hard links ???
>
The OP is (one hopes) not changing permissions for the sake of
changing permissions, but is rather trying to accomplish something.
Most likely, whatever he's trying to accomplish, trying to change
permissions is the Wrong Way, and he should be using a different
approach. Unfortunately, we've been unable to pry out of him
exactly what he's *really* trying to do.
Chris Mattern
Chris Mattern Guest
-
Thomas Schulz #14
Re: Changing permissions of ps command
In article <3f2319e9$0$21133$626a54ce@news.free.fr>,
ragnus2003 <vincent.ragueneau@fnac.net> wrote:>Yes i'ts true....
>But what is the solution for this problem ???
>if you set up permission to on comand and not hard links ???
It would be better to change the permissions on /usr/bin/sparcv*/ps
and leave /usr/bin/ps as a hard link to the wrapper program. That is
less likely to break patchadd.
-->
>Vince
>"Chris Mattern" <syscjm@gwu.edu> a écrit dans le message de news:
>3F2193A4.6020108@gwu.edu...>and>> ragnus2003 wrote:>> > Hi,
>> > The system recognise different command (ps ,w ... there is 32 command or
>> > more...)
>> > by the name of the command and her directory.
>> > To attribute permissions only to PS command who can copy this command>this>> ragnus, this is a really *bad* idea. Rearranging /usr/bin/ at random like>> > after you
>> > change permissions.
>> > # rm ps
>> > # cp w ps
>> > # chmod 555 ps
>> >>> makes patchadd cry.
>>
>> Chris Mattern
Tom Schulz
[email]schulz@adi.com[/email]
Thomas Schulz Guest



Reply With Quote

