Question & Answer
Question
How do I mount a Windows share or CIFS in RHEL5?
Answer
You can mount Windows shares by installing the Samba client and using the CIFS option inline. To install the Samba RPMs, see How do I install Samba on my TwinFin server (RHEL 5.3)?, referenced below.
To mount a Windows share:
1. Create a /etc/.cred file, which will have entries like below:
username=<your login name>
password=<your password>
Note: If you are using a domain in your login username, the entry will look like: <DOMAIN>\<username>
The following is a sample file:
- [root@amp50]# cat /etc/.cred
username=jcafarelli
password=******
2. Add the following line to /etc/fstab:
- //<pc_name>/<share_name> /<mount_point> cifs gid=apache,uid=apache,credentials=/etc/.cred 0 0
For example:
- //jasoncwb/share /media/jasoncwb/ cifs gid=apache,uid=apache,credentials=/etc/.cred 0 0
Related Information
[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":null,"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Historical Number
NZ192986
Was this topic helpful?
Document Information
Modified date:
17 October 2019
UID
swg21575972