- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: mount window share to linux
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
05-24-2007 03:05 AM
05-24-2007 03:05 AM
mount window share to linux
It does not need provide username/password. What steps need be taken both in window and linux sides? As it always asks for password if as root on linux issue this command.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2007 03:22 AM
05-24-2007 03:22 AM
Re: mount window share to linux
The reason is the mount command requires root privileges on Linux.
After providing the root password you will be prompted for a Windows user and password.
It is possible though improbably that the Linux systems administrator will use sudo and give you the ability to run mount. See your friendly local neighborhood Linux admin for more on this.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2007 03:36 AM
05-24-2007 03:36 AM
Re: mount window share to linux
I am looking for any possibility that without provide window account, just that command leads to mount window share to linux
The point is mount/umount will be in a script. No one wants password hard coded in the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2007 04:53 AM
05-24-2007 04:53 AM
Re: mount window share to linux
Mounting shares at logon time
If you want to automatically mount shares at user logon time the only way I found is doing it with the pam_mount module. It is the only way to do an authenticated mount without requiring the user to store the password in a file or entering it on a terminal.
http://pam-mount.sourceforge.net/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2007 04:54 AM
05-24-2007 04:54 AM
Re: mount window share to linux
Use the following command:
moutn -t smbfs -o username=windows_domain\windows_user password=win_user_password //windows_server/windows_share /tmn
You can put this in /etc/rc.local so that when ever server boots the share is mounted
Hope this helps
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2007 06:16 PM
05-24-2007 06:16 PM
Re: mount window share to linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2007 09:09 PM
05-25-2007 09:09 PM
Re: mount window share to linux
You could put the windows credentials into a file that is only readable by root (chmod 400), and then use the credentials=file.txt option to smbmount.
# man smbmount
for more information.
That should hopefully keep the security people happy...
Hope this helps,
Regards,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2007 02:44 AM
06-06-2007 02:44 AM
Re: mount window share to linux
What setup does this require? and on which side, UNIX or Window?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2007 01:36 AM
06-25-2007 01:36 AM
Re: mount window share to linux
//server/share /tmn smbfs auto,user,credentials=/root/.passwords/.smbpasswd
The credentials-file (/root/.passwords/.smbpasswd) must have this entries:
username=windows-domain\username
password=secret
I don't have it as root but you might give it a try to have it mounted on startup (if you didn't already solve this).
Regards,
Arnd