Let's say I have a Samba server for my file serving needs. Would there be any way to configure CentOS to automatically mount a few specified partitions as the user logging in? Something of the nature of /mnt/home, /mnt/pictures, /mnt/music and so forth. They need to be mounted as the current user, and I prefer not to customize shell based login scripts. Can this be done through fstab somehow? Or some other method? I can make, and currently utilize, SMB share links on my desktop for accessing them. However, when applications want to open or save directly to the file system, I'm unable to reach the network shares. In the grand scheme of things, this makes having network shares pretty much useless. There must be a better way?
Thanks, Scott
Scott Moseman wrote:
Let's say I have a Samba server for my file serving needs. Would there be any way to configure CentOS to automatically mount a few specified partitions as the user logging in? Something of the nature of /mnt/home, /mnt/pictures, /mnt/music and so forth. They need to be mounted as the current user, and I prefer not to customize shell based login scripts. Can this be done through fstab somehow? Or some other method? I can make, and currently utilize, SMB share links on my desktop for accessing them. However, when applications want to open or save directly to the file system, I'm unable to reach the network shares. In the grand scheme of things, this makes having network shares pretty much useless. There must be a better way?
Samba implements SMB, which is Windows method of network file sharing. unix to unix works much better with NFS. Assuming this Samba server is in fact unix based, you can run both NFS and Samba concurrently, use NFS for the unix/linux clients, and SMB for Windows clients.
re: your login scheme... Centos is a multiuser system... what if two users are logged in concurrently, who's /mnt/pictures would you want?
NFS systems often put a users entire home directory on the network server, and mount it at login as /home/servername/username
You could possibly install the NSF client that Microsoft has for Windows and skip Samba entirely.
Just my $0.02
If you are not the intended recipient of this message (including attachments), or if you have received this message in error, immediately notify us and delete it and any attachments. If you no longer wish to receive e-mail from Edward Jones, please send this request to messages@edwardjones.com. You must include the e-mail address that you wish not to receive e-mail communications. For important additional information related to this e-mail, visit www.edwardjones.com/US_email_disclosure
-----Original Message-----
Scott Moseman wrote:
Let's say I have a Samba server for my file serving needs. Would there be any way to configure CentOS to automatically mount a few specified partitions as the user logging in? Something of the nature of /mnt/home, /mnt/pictures, /mnt/music and so forth. They need to be
mounted as the current user, and I prefer not to customize shell based
login scripts. Can this be done through fstab somehow? Or some other
method? I can make, and currently utilize, SMB share links on my desktop for accessing them. However, when applications want to open or save directly to the file system, I'm unable to reach the network shares. In the grand scheme of things, this makes having network shares pretty much useless. There must be a better way?
Samba implements SMB, which is Windows method of network file sharing. unix to unix works much better with NFS. Assuming this Samba server is in fact unix based, you can run both NFS and Samba concurrently, use NFS for the unix/linux clients, and SMB for Windows clients.
re: your login scheme... Centos is a multiuser system... what if two users are logged in concurrently, who's /mnt/pictures would you want?
NFS systems often put a users entire home directory on the network server, and mount it at login as /home/servername/username
On Nov 12, 2007 1:39 PM, John R Pierce pierce@hogranch.com wrote:
re: your login scheme... Centos is a multiuser system... what if two users are logged in concurrently, who's /mnt/pictures would you want?
Good point. While I don't necessarily use my desktop system that way, the fact remains that it is a multi-user system. I did not think about that.
I will review using NFS when accessing my server from my Linux clients.
Thanks, Scott