Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sub shell implementation

21 views
Skip to first unread message

zix

unread,
Jul 1, 2009, 12:10:52 PM7/1/09
to
Hi Everybody,
this is in related to this thread: somehow i decided it has grown
enough, so thought of starting a new one...
http://groups.google.co.in/group/comp.os.linux.development.apps/browse_thread/thread/ec0248992b354ed6/c5f9da3df5d91a2b?hl=en#c5f9da3df5d91a2b

Anyways, the point is that I have to implement a shell(same as
newgrp). But just wondering, how is that feasble.

as for example, I have command df which has to be executed from new
group. if I have the new group ready, how do i set the df command to
be executed by users of that group? I mean imagine if my group id is
140, what do i set in df so that only users after entering the group
(gid 140) will be able to execute?

I have to have all these automated, as all these are supposed to be in
rootfilesystem and not in PC's. I am planning to write all scripts to
automate when my target boots up and runs.

Thanks for all the help,
zix

Joe Beanfish

unread,
Jul 1, 2009, 12:53:38 PM7/1/09
to
zix wrote:
> Hi Everybody,
> this is in related to this thread: somehow i decided it has grown
> enough, so thought of starting a new one...
> http://groups.google.co.in/group/comp.os.linux.development.apps/browse_thread/thread/ec0248992b354ed6/c5f9da3df5d91a2b?hl=en#c5f9da3df5d91a2b
>
> Anyways, the point is that I have to implement a shell(same as
> newgrp). But just wondering, how is that feasble.

newgrp doesn't implement a shell. It just changes group then
runs a standard shell.

> as for example, I have command df which has to be executed from new
> group. if I have the new group ready, how do i set the df command to
> be executed by users of that group? I mean imagine if my group id is
> 140, what do i set in df so that only users after entering the group
> (gid 140) will be able to execute?

chgrp 140 /bin/df
chmod 750 /bin/df

zix

unread,
Jul 2, 2009, 12:30:56 AM7/2/09
to
> chgrp 140 /bin/df
> chmod 750 /bin/df

thank u, thats perfect :-)

0 new messages