LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Export your /shared directory via NFS to the example.com domain only (https://www.linuxquestions.org/questions/linux-newbie-8/export-your-shared-directory-via-nfs-to-the-example-com-domain-only-4175449114/)

sanjusharma 02-08-2013 12:37 AM

Export your /shared directory via NFS to the example.com domain only
 
Export your /shared directory via NFS to the example.com domain only
- You can check your shared directory but shoumount will not allow because you login from local user
- You may check by using /net directory

Found above question to prepare RHCE exam, Kindly suggest how to do above mention question.

acid_kewpie 02-08-2013 12:41 AM

well you really would benefit from trying to research this yourself more. On the face of it though, maybe you've confusion about what the domain reference means? That's just about basic name resolution in /etc/exports. It's not about advanced authentication of anything NFSv4 would provide, just NFSv3. This is fairly simple stuff, so I'd really urge you to take the time to go find the answers rather than us spoonfeeding you.

shivaa 02-08-2013 12:46 AM

- Can you post the full question?
- Was it a multiple choice question (then what options) or a subjective one?
- Also, where are you stuck and what you can't understand here?

sanjusharma 02-08-2013 04:29 AM

acid_kewpie thanks for suggestion, still i would like you guys to correct me.

I would like you guys to verify my configuration.

cat /etc/exports
/shared example.com(rw,sync)

acid_kewpie 02-08-2013 04:33 AM

OK, so your domain is not correct. the logic is that when a client connects, the server will take the IP address of the client and do a reverse lookup on that IP for the hostname. So you can get back web.domain.com, server.domain.com etc... you don't * just* get the domain itself.

sanjusharma 02-08-2013 04:40 AM

So, what sud be actual configuration to resolve this ?

network & ip
example.com 192.168.0./24
my133.org 172.20.10.0/24

if i correct my configuration with below its should work ?
cat /etc/exports
/shared 192.168.0.0/24(rw,sync)

tony21 02-08-2013 04:46 AM

Did you try to open linux terminal? What did you see?

sanjusharma 02-08-2013 04:55 AM

It is available to example.com via showmount as well as can access through /net

Export list for 192.168.0.10:
/shared 192.168.0.0/24

acid_kewpie 02-08-2013 05:06 AM

right so if the specifications are that that is the network associated with example.com then it's workign, no?

Remember that the RHCE tests check what *happens* and NOT how it does it.

tony21 02-08-2013 05:09 AM

If you see that then restart your nfs


All times are GMT -5. The time now is 11:14 PM.