File permission problem:

Hi,

I’ve build an rtp system running on a PPC platform. I’m having a few
problems with file permissions and need some help.


Firstly when I log in as root everything appears OK. The system works as
expected.

However when I log in as a user , created with passwd. I find that I
cannot change the users password and I cannot ping another machine on
the network.

The error messages I get are:

$passwd
changing password for User1
current Password: xxxxx

Sorry!

$ping 10.10.10.1
ping: socket: Permission denied


I guess that this problem is related , but I cannot figure out where…


Any suggestions?


Dave

Dave Edwards <nobody@home.com> wrote:

Hi,

I’ve build an rtp system running on a PPC platform. I’m having a few
problems with file permissions and need some help.

Firstly when I log in as root everything appears OK. The system works as
expected.

However when I log in as a user , created with passwd. I find that I
cannot change the users password and I cannot ping another machine on
the network.

The passwd and ping utilities need to be setuid root.

(chown root /usr/bin/ping chmod u+s /usr/bin/ping)

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Hi Dave…

Where is your build file? If you post your build, I am sure that you’ll
get meaningful help.

Which devn-* are you using? How do you start your shell?

Regards…

Miguel.

Dave Edwards wrote:

Hi,

I’ve build an rtp system running on a PPC platform. I’m having a few
problems with file permissions and need some help.

Firstly when I log in as root everything appears OK. The system works as
expected.

However when I log in as a user , created with passwd. I find that I
cannot change the users password and I cannot ping another machine on
the network.

The error messages I get are:

$passwd
changing password for User1
current Password: xxxxx

Sorry!

$ping 10.10.10.1
ping: socket: Permission denied

I guess that this problem is related , but I cannot figure out where…

Any suggestions?

Dave

my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com

Problem Solved!

It would appear that when I copied over the OS files, I managed to lose
the setuid settings for some of them. Replacing this on the relevant
files fixed the problem.

Thanks for the help

Dave


Dave Edwards wrote:

Hi,

I’ve build an rtp system running on a PPC platform. I’m having a few
problems with file permissions and need some help.


Firstly when I log in as root everything appears OK. The system works as
expected.

However when I log in as a user , created with passwd. I find that I
cannot change the users password and I cannot ping another machine on
the network.

The error messages I get are:

$passwd
changing password for User1
current Password: xxxxx

Sorry!

$ping 10.10.10.1
ping: socket: Permission denied


I guess that this problem is related , but I cannot figure out where…


Any suggestions?


Dave