- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- fstab entry for mounting shares with cifs
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-01-2002 10:19 AM
тАО03-01-2002 10:19 AM
mount -F cifs -o username=
However, I want to automate it so that I don't have to type it all in at reboot or with an unmount. the stupid manual says that I can put it in /etc/fstab, but doesn't say how I am suppose to include the login info (user name and passwd). Useless piece of... Anyway, I tried to put them after the type:
but it didn't work. Has anyone done this? I could write a script with the individual mount commands, but I'd prefer not to. Thanks!
Mark
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2002 11:06 AM
тАО03-01-2002 11:06 AM
Re: fstab entry for mounting shares with cifs
/usr/sbin/mount -p
This will show the current mounts in fstab format. Grab the line you're interested in and paste it into your /etc/fstab at the bottom.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2002 11:20 AM
тАО03-01-2002 11:20 AM
Re: fstab entry for mounting shares with cifs
I went ahead and tried that. I got a bunch of errors about "illegal file system specific option" and all the options, like soft, noac, retrans=3, etc. There was no login info or password in the command. If I just use the folders and no options (
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2002 11:28 AM
тАО03-01-2002 11:28 AM
Re: fstab entry for mounting shares with cifs
Love it when I learn something new here (that I probably should've known).
I have struggled with fstab syntax.
I don't have cifs to check - does the mount -p handle the username/pw info as well & are these values stored in clear text?
Not sure I would want that.......
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2002 11:35 AM
тАО03-01-2002 11:35 AM
Re: fstab entry for mounting shares with cifs
No, it doesn't seem to be passing that information. It might be becuase I am specifying it in the command; I don't know. I'm not really concerned about the login and password being out there for viewing. It is a dummy account that we made on both sides so that there would be something that could be used for all of our NT stations without having to use the actual user name and password (which I wouldn't want everyone to see).
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2002 11:46 AM
тАО03-01-2002 11:46 AM
Solution1.add an entry in your /etc/fstab file like the following example:
# grep cifssrv /etc/fstab
cifssrv:/dirname /tmp/cifs cifs defaults 0 0
!! NOTE: The cifssrv hostname MUST be a WINS name!!
2. mount the drive using:
# mount -a
or
# mount -F cifs cifssrv:/desktop /tmp/cifs
3. do a cifslogin for the user with the '-s' option to save the password in a user database (/var/opt/cifsclient/cifsclient.udb by
default) :
# cifslogin cifssrv myname -P password -s
NOTE: man on cifssrv for specifics on options
4. Check to make sure the password db was created :
# ll /var/opt/cifsclient/cifsclient.udb
-rw------- 1 root sys 191 Jul 26 21:14 cifsclient.udb
!!NOTE: This file will get deleted if you upgrade cifsclient or patch cifs9000!!
5. Make sure that cifs share is mounted
# bdf -tcifs
localhost:\\CIFSSRV\DIRNAME 6289888 3650064 2639824 58% /tmp/cifs
6. reboot the system to test th emount does occur at boot time
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2002 12:23 PM
тАО03-01-2002 12:23 PM
Re: fstab entry for mounting shares with cifs
Mark