- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cannot automate CIFS Mount
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2006 02:36 AM
11-15-2006 02:36 AM
cifsmount -U MilesReports -P XXXXXXXX //s869a111.corpds.net/MilesReports /mnt/reports
The above command works OK.
# cifslogin -U MilesReports -P XXXXXXXX s869a111.corpds.net -s
# grep cifs /etc/fstab
//s869a111.corpds.net/MilesReports /mnt/reports cifs defaults 0 2
# mount /mnt/reports
mount: //s869a111.corpds.net/MilesReports: No such file or directory
#
I could create a custom script for the init.d directory, but am more concerned about what else I am missing functionality wise.
Easy points for a good configurer. Share and Enjoy! Ian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2006 02:45 AM
11-15-2006 02:45 AM
Re: Cannot automate CIFS Mount
My fstab man pages make no mention of CIFS. As a matter of fact the only FSTypes mentioned are hfs, vxfs, cdfs, nfs, or lofs.
Are you certain this is supported?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2006 02:57 AM
11-15-2006 02:57 AM
Solutionremove "//" in front of host name, "mount" dosen't use "//" to identify host name, instead it uses ":"
s869a111.corpds.net:/MilesReports /mnt/reports cifs defaults 0 2
or better to edit your hosts file so that you can use "short" hostname.
s869a111:/MilesReports /mnt/reports cifs defaults 0 2
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2006 03:15 AM
11-15-2006 03:15 AM
Re: Cannot automate CIFS Mount
Thats got it, thanks very much!
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2006 03:17 AM
11-15-2006 03:17 AM
Re: Cannot automate CIFS Mount
This is the way I see things ( and so can be wrong...)
I dont see how it can work, because you have to be connected first (-U MilesReports -P XXXXXX...) before it can be mounted...
This is an example of a cron file:
/usr/sbin/mount -F cifs horloge:/d /sm/import/horloge && \
/sm/cron/bin/get_uxfiles
cd /sm/cron; /sm/cron/bin/append_date && \
/usr/sbin/umount /sm/import/horloge
As you see this syntax would work in fstab, since there is no user/passwd and uses the mount and not cifsmount.
For this I had to create a passwd DB for CIFS client, so root can mount after without being asked a account on the MSbox..., only I forgot how but Im sure you will find reading the man pages.
I will try to look...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2006 03:35 AM
11-15-2006 03:35 AM
Re: Cannot automate CIFS Mount
I think the fact that it works is due to the fact that I already submitted the userid/password using "cifslogin" that allows me to do this.
I am rolling out another identical system, I will try a "clean" cifs mount without the messing about and see if it still works.
Share and Enjoy! Ian