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
Historical Number
NZ192986
Was this topic helpful?
Document Information
More support for:
IBM PureData System
Software version:
1.0.0
Document number:
195743
Modified date:
17 October 2019
UID
swg21575972