Operating System - HP-UX
1837655 Members
2794 Online
110117 Solutions
New Discussion

Permission Is Denied. I'm clueless. Please helpp

 
apple
Super Advisor

Permission Is Denied. I'm clueless. Please helpp

Dear All,
Our user hit this error when she execute her ./profile

# /.profile
sh: /.profile: Execute permission denied

I've given the right to this user. I've changed the owner to her also. Her id is ssicis
the right given is:

drwxr-x--x 2 ssicis users ssicis

Hope to hear from you
Finas
12 REPLIES 12
apple
Super Advisor

Re: Permission Is Denied. I'm clueless. Please helpp

the root also can execute. is it something wrong with the file .profile
the id also unable to ftp. how can i allow the ftp to this id???? we was unable to ftp, and we have copied the .profile manually. i think if we are able to copy original .profile, i hope the problem will resolve. hope to hear from you the ftp right????
apple
Super Advisor

Re: Permission Is Denied. I'm clueless. Please helpp

the ftp was successful. i think the .profile program itself is not executable. because from the os, i have granted the ACL. somemore root also can't execute. it must be something to do with the program?? what do u think. hope to hear from you
Dennis Handly
Acclaimed Contributor

Re: Permission Is Denied. I'm clueless. Please helpp

Why are you trying to execute .profile? This only needs read access when you source it.

># /.profile

This looks like you are trying to execute root's .profile? And with the "#" as root?
apple
Super Advisor

Re: Permission Is Denied. I'm clueless. Please helpp

our application id also was unable to execute /.profile. when they hit the problem, i also execute using root. but to no avail. is it could due to the .profile itself?
whiteknight
Honored Contributor

Re: Permission Is Denied. I'm clueless. Please helpp

Finas,

example:-
# ll -d /home/andrew
drwxr-xr-x 3 andrew users 1024 Oct 8 11:38 /home/andrew


# ll /home/andrew/.profile
-r--r--r-- 1 andrew users 439 Nov 14 2000 /home/andrew/.profile
#

Why you need to execute .profile, if the user can login into her account, means it is working fine.

WK
Problem never ends, you must know how to fix it
apple
Super Advisor

Re: Permission Is Denied. I'm clueless. Please helpp

our user said she can execute the file. she is our database administrator. i hv granted the execution access. i just tried using root, also can't execute. root should be able to execute all right? i wanna narrow down the scope. is it something to do with the ACL or the .profile program itself? hope to hear from you. how to investigate this.
Yogeeraj_1
Honored Contributor

Re: Permission Is Denied. I'm clueless. Please helpp

hi Finas,

the .profile is just a script with instruction mostly related to setup the environment for the user's shell.

The need to run the .profile arises only if one wants to set the environment variables.

For the DBA, it would be wiser to setup these variables by modifying one's script or using a custom script.


good luck!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Venkatesh BL
Honored Contributor

Re: Permission Is Denied. I'm clueless. Please helpp

># /.profile

This refers to the ".profile" file on the "root" user. Is this what you wanted to execute?

Also, the user's .profile is executed automatically during login. If you make changes to it and what it to reflect in the currect session, then you 'source' it using:
# . ./.profile ;from the user's home dir.
whiteknight
Honored Contributor

Re: Permission Is Denied. I'm clueless. Please helpp

Finas

your typos mistakes

#./.profile

WK
Problem never ends, you must know how to fix it
Kapil Jha
Honored Contributor

Re: Permission Is Denied. I'm clueless. Please helpp

Finas,
For user ssicis its profile file would be in
~ssicis/.profile directory.
So i suppose you will have to run
#. ~ssicis/.profile (remember the space)

or
$ cd ~ssicis
$sh .profile ./profile

hopw this help.
BR,
Kapil
I am in this small bowl, I wane see the real world......
rajdev
Valued Contributor

Re: Permission Is Denied. I'm clueless. Please helpp

Hi Finas,

The answer to me looks simple , just run
# chmod 755 /.profile

and try again ....

Ofcourse its a different issue why you want to run .profile etc , it should have already been run when you login ....

also a better way of running it is
# . /.profile [ ie the values are for the current shell ! ]

Regards,
RD
Jeeshan
Honored Contributor

Re: Permission Is Denied. I'm clueless. Please helpp

Hi finas

When user login its automatically execute its .profile.
If its related to database then set the database environment to her profile then logout and login.

Jeesun
a warrior never quits