Operating System - HP-UX
1834346 Members
1782 Online
110066 Solutions
New Discussion

Re: User cannot access to some directory

 
Kenn Chen
Advisor

User cannot access to some directory

Currently, I have one user accessing to dir /var/opt/openmail/email. After two days, she complained that she cannot access to the directory and even cannot see he dir file (email). Where is the user setting for this kind of problem ? root user has no problem to access to that directiry. ? Please help !!
If i use root user login and su to the particular user then it work well. Is it user profile setting or authorization setting ??
Cyber Zen
5 REPLIES 5
Michael Tully
Honored Contributor

Re: User cannot access to some directory

Hi,

I am not sure about the openmail product
itself but, what is the owner and group of the
directory? It is the user herself or is this
a shared directory? I have seen where setting
up a new user the owner has changed /home for
example. I am wondering whether openmail have
such a problem. Have you set up any new openmail users recently?

HTH
-Michael
Anyone for a Mutiny ?
Kenn Chen
Advisor

Re: User cannot access to some directory

When I issue > ll email ==> out some files instaed of the email only.

cd /var/opt/opnmail
ll email

many files listed .........
Cyber Zen
Sanjay_6
Honored Contributor

Re: User cannot access to some directory

Idis,

I thought the default user mail directory was /var/mail.

Anyway check for the directory and file permisssions. Set teh file permission to 766 and see if it helps. The user should have read / write permission to the file and the directory.

hope this helps.

thanks
Michael Tully
Honored Contributor

Re: User cannot access to some directory

Hi,

Try issuing this command:

# ls -ld /var/opt/openmail/email

This will list the directory itself and
the permissions.

HTH
-Michael
Anyone for a Mutiny ?
Shahul
Esteemed Contributor

Re: User cannot access to some directory

Hi

If root can access the directory and one particular user cannot means it is something related to permission settings.

Directory permission ruls are like this.
If read permission is not set for a directory U will not be able to list or access the file inside the directory.

If the execute permission of a directory is not set, files inside can be listed with names only. ll will not work.

if only execute pemission is set with out read and write, U can go to directory and excute the program by using program name. U will not be able to list.

So please check these and make sure that U have not changed the group of the user recently.

Best of luck

Shahul