Operating System - HP-UX
1832059 Members
3027 Online
110034 Solutions
New Discussion

User unable to edit file, permissions problem

 
SOLVED
Go to solution
dictum9
Super Advisor

User unable to edit file, permissions problem


A user's home directory is created in another user's home directory and the former is unable to edit it's .profile. Why is that?
And what is this "home/aitest/Ex10871" stuff?

[devbiz][/apps/aitest/Trantest50]: whoami
aitest50
[devbiz][/apps/aitest/Trantest50]: grep aitest /etc/passwd
aitest:ZI9b1tWBRIvHs:1040:20:AI Test User ,,,:/apps/aitest:/usr/bin/ksh
aitest50:GtFhf4C8qlAZY:1041:20:2nd AI Test User,,,:/apps/aitest/Trantest50:/usr/bin/ksh
[devbiz][/apps/aitest/Trantest50]: pwd
/apps/aitest/Trantest50
[devbiz][/apps/aitest/Trantest50]: touch a
[devbiz][/apps/aitest/Trantest50]: vi a
"/home/aitest/Ex10871" Permission denied


[devbiz][/apps/aitest/Trantest50]: ll /apps/aitest
total 20
drwxrwx--x 19 aitest users 3072 Jul 18 14:35 Trantest50
drwxrwxr-x 2 aitest users 96 May 10 10:48 lost+found
-rw-rw---- 1 aitest users 6421 May 31 15:23 vpd.properties

6 REPLIES 6
Robert-Jan Goossens
Honored Contributor
Solution

Re: User unable to edit file, permissions problem

could you run a few commands to check the integrity of the passwd and the group files?

# pwck
# grpck

Robert-Jan
dictum9
Super Advisor

Re: User unable to edit file, permissions problem

Nothing relevant to these 2 users is found.

I think that the user should be recreated with its own home directory?
James R. Ferguson
Acclaimed Contributor

Re: User unable to edit file, permissions problem

Hi:

The 'Ex10871' is a unique filename generated by a call to 'tmpnam()'. You see these files as recovery files from 'vi' sessions in '/var/preserve'. What, exactly, this file is doing in your $HOME directory apparently as a part of a 'vi' session, I'm not sure.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: User unable to edit file, permissions problem

Hi (again):

Try changing the permissions of '/apps/aitest' from 771 (drwxrwx--x) to 775 (drwxrwxr-x) and repeat your test.

Regards!

...JRF...
dictum9
Super Advisor

Re: User unable to edit file, permissions problem

didn't work...

I am going to abandon this whole structure and create new users in their own directories... thanks for your help anyway.
Dennis Handly
Acclaimed Contributor

Re: User unable to edit file, permissions problem

>JRF: The 'Ex10871' is a unique filename generated by a call to 'tmpnam()'.

Right. This would happem if TMPDIR was changed from the default /var/tmp/.

For /var/perserve/, I see Exaaa*.