Well-Known Member
Feb 24, 2008
Atlanta, GA
cPanel Access Level
DataCenter Provider
Can someone give me a proper example of what the fstab entry should be for a cifs mount when using Centos and WHM? The example given on does not work. They say it should be:

//winbox/getme /mnt/win cifs user,uid=500,rw,noauto,suid,credentials=/root/secret.txt 0 0
My thought is that the uid needs to be set to something else and/or additional options need to be used.
I have been doing it manually and it works fine with:
mount -t cifs -o username=user,password=pass //
I hope someone can help with this. Its a real pain to have to manually mount shares every time I reboot a server.
Last edited:


Jan 29, 2012
cPanel Access Level
DataCenter Provider
Hi tomdchi,

I am using CIFS shares for CPanel backup.

(It has worked quite well in the past, seems that last week's update to 11.32 introduces some bugs in this, CPanel seems to not mount the share and to fail to notice this, so it starts the backup and the / filesystem fills up. I'm investigating this right now)

Here's my config:

//file.server.ip.addr/fileserver-share /mnt/backup-share cifs defaults,noexec,noauto,file_mode=0640,dir_mode=0750,credentials=/root/backup-share-credentials


The username and password are ofcourse defined on the fileserver.

In WHM's "configure backup", I have checked "mount/unmount share" and "bailout if mount fails".

I have 4 servers with this configuration. As I said, it has worked really well for the past 2-3 years, until last week's 11.32 update.


LE: typing the share's username and password in /etc/fstab is not recommended security-wise, because /etc/fstab needs to be publicly readable -- so with a minimum effort (upload of a PHP file-manager) any of your CPanel users could read it and mount the share and read all other users' backups. The credential file should be owned by root and have 400 permissions.
Last edited: