Discussion Locked

Sharing a CD-ROM over the network

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I've been trying to share a CD-ROM from one RedHat 7.1 server to another 7.1 server.

My process was to firstly mount the CD-ROM drive.

Next to edit the /etc/exports and add /mnt/cdrom "IP Address"(ro,no_root_squash)

Then run exportfs -ra and restart nfs.

Went to remote machine and created a folder called "nfs" and attempted to manually mount with "mount "IP Address":/mnt/cdrom /nfs

And I receive this message: "mount: IP Address:/nfs failed, reason given by server: Permission denied

I'm using NIS and this is working fine on both machines. The folder permission on "nfs" is 777 and the CD-ROM /mnt/cdrom is 555.

Where am I going wrong? I've looked at lots of atricles and examples and none are really helping!

3 replies

by vdanen

Are you married to using NFS? Is samba a possibility perhaps?
NFS can be... flakey... sometimes. Then again, so can samba,
but if it's an option, you can make a share pointing to your
cdrom directory. It might not matter as much to samba as it
does to NFS that it's a CD-ROM. I'd give samba a try. You can
mount samba shares via fstab as well (man mount should give
you the options to use and syntax).

by jdclyde

In the system you are sharing out you need to give permissions to the incoming system.

Add in the /etc/hosts.allow file the IP address and the Computer name.
Example:
10.1.1.101:jd

This is the same as if a user has permission to run applications, but didn't provide the correct password/user name to login first.

Good luck.

This discussion is closed to new replies.