1827473 Members
1699 Online
109965 Solutions
New Discussion

Mount PC share to UNIX

 
SOLVED
Go to solution
jerry1
Super Advisor

Mount PC share to UNIX

How can I mount a PC share to a UNIX server?
9 REPLIES 9
Sundar_7
Honored Contributor
Solution

Re: Mount PC share to UNIX

1) Start cifsclient daemon

# vi /etc/rc.config.d/cifsclient
RUN_CIFSCLIENT=1
#

# /sbin/init.d/cifsclient start

2) # mount -F cifs :/share-name /mountpoint

3) authenticate to the share

# cifslogin


To mount the share everything the system boots, add thefollowing entry to /etc/fstab

# vi /etc/fstab
:/share-name /mountpoint cifs defaults 0 2
#

and add -s option to cifslogin, so that you dont have to authenticate urself everytime the share is mounted

# cifslogin -a
Learn What to do ,How to do and more importantly When to do ?
jerry1
Super Advisor

Re: Mount PC share to UNIX

Thank you.
jerry1
Super Advisor

Re: Mount PC share to UNIX

Sundar, there are samba configs /etc/rc.config.d/samba
and /sbin/init.d/samba but no cifs configs.
??

Sundar_7
Honored Contributor

Re: Mount PC share to UNIX

hmm..you may not have CIFS client software installed in the system

# swlist | grep -i cifs

If you dont see "CIFS Client" then you need to install CIFS client software in the system.

You can download CIFS client from software.hp.com.
Learn What to do ,How to do and more importantly When to do ?
jerry1
Super Advisor

Re: Mount PC share to UNIX

Correct, Just realized that. And it requires
a reboot. Darn!

Thanks again for your help.
jerry1
Super Advisor

Re: Mount PC share to UNIX

It does not work:

mount -F cifs mp-irv-04a:/ccure800 /a



Darren Prior
Honored Contributor

Re: Mount PC share to UNIX

Hi Jerry,

What error message do you see when you run the mount command, and has anything been logged in the cifsclient error log?

regards,

Darren.
Calm down. It's only ones and zeros...
jerry1
Super Advisor

Re: Mount PC share to UNIX

Actually I ended up trying:

# cifsmount //mp-irv-04a/ccure800 /a -U ntuser

It mounted, but ntuser does not have read
perms. Thats okay since it is not setup yet to do so.

bdf shows:

localhost:\\MP-IRV-04A\CCURE800
16764696 2664152 14100544 16% /a


If I try:

# mount -F cifs mp-irv-04a:/ccure800 /b
Logging in User: You are already connected as user ->ntuser<-

Probably since I did a:

cifslogin mp-irv-04a ntuser



What is the difference using mount or cifsmount and how do I undo the user connection if I wanted to mount with a
different user id?
Darren Prior
Honored Contributor

Re: Mount PC share to UNIX

Hi Jerry,

I believe cifsmount will be removed at some point in the future. The mount -F cifs command actually uses cifsmount to do the work.

As for specifying different user names, you can use cifslogout then cifslogin with a different name.

regards,

Darren.
Calm down. It's only ones and zeros...