Operating System - HP-UX
1827403 Members
5321 Online
109965 Solutions
New Discussion

Re: user has no write permissions to ramdisk

 
cl_5
Frequent Advisor

user has no write permissions to ramdisk

Hi Forumers,

I´ve got a A500-machine with 11.11 running on it. On this I ´ve configured a ramdisk.
Everytime the ramdisk becomes mounted while booting I have no write permissions as non-root user. So I changed permissions to this directory,umount and mount, everything´s alright. until I boot again. I already tried this with hfs and vxfs filesystems

my fstab entry looks like this:

/dev/dsk/ramdisc /ramdisk vxfs defaults 0 2


the device file permissions of block and character devices are:
brw-r--r-- 1 root sys 9 0x0ff0f0 ... /dev/dsk/ramdisc
crw-r--r-- 1 root sys 9 0x0ff0f0 ... /dev/rdsk/ramdisc

Something in this case makes me confused. I´ve got an A440-machine with 11.0 on it. It has the same configuration and it works?!?

Any ideas?

Thanks in advance
cl
8 REPLIES 8
Stephen Keane
Honored Contributor

Re: user has no write permissions to ramdisk

What permissions do you have on the directory you are mounting it on

/ramdisk

Not the device files.
cl_5
Frequent Advisor

Re: user has no write permissions to ramdisk

Hi Stephen,

thanks for replying so fast.

The permissions of the mounting dir is as follows

drwxrwxrwx root root /ramdisk

Writing should be possible.

regards
cl
Stephen Keane
Honored Contributor

Re: user has no write permissions to ramdisk

I agree, it should be writeable!

If you have the time, you might want to look at /etc/mnttab

(1) After you have booted, and the /ramdisc directory is not writable.

(2) After you have unmounted and mounted and the /ramdisc directiry is writeable

If there is a difference between the two entries it should give us a clue.

cl_5
Frequent Advisor

Re: user has no write permissions to ramdisk

Yes, there is really a difference!
The entry in /etc/mnttab looks like
/dev/dsk/ramdisc /ramdisk vxfs log 0 0 1109070115
This mount options contains only "log". Is it possible to change these settings?

Temporary I´ve added a chmod 777 for /ramdisk in /sbin/init.d/localmount to go around. But I´m not happy with this solution.

regard
Stephen Keane
Honored Contributor

Re: user has no write permissions to ramdisk

Change your /etc/fstab entry to

/dev/dsk/ramdisc /ramdisk vxfs largefiles,rw,suid 0 2

And see if that helps
cl_5
Frequent Advisor

Re: user has no write permissions to ramdisk

I already checked this. No changes.

There must be a difference between mounting manually via fstab and mounting while booting.

Maybe the filehandle has changed in 11.11 and became more secure. Only an idea

regards
cl
Stephen Keane
Honored Contributor

Re: user has no write permissions to ramdisk

What does your /etc/mnttab file look like when you've just booted AND what does it look like after you've done your manual mount?

2 files to post!
cl_5
Frequent Advisor

Re: user has no write permissions to ramdisk

There´s no difference