How to rejoin a linux server to a linux domain

Red Squirrel

No Lifer
May 24, 2003
70,085
13,536
126
www.anyf.ca
I recently did an update to samba on my DC which resulted in me having to rejoin all PCs to the domain. I noticed since then all my backups are failing on my linux servers. Mount.cifs wont work at all, just fails.

Code:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

I'm guessing this has to do with the domain not properly authenticating. The password IS valid, and this worked before the domain incident.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Are you running mount.cifs as root? If not, was it setuid before and not now?
 

Red Squirrel

No Lifer
May 24, 2003
70,085
13,536
126
www.anyf.ca
Weird I could have sweared I posted but my post is not showing up.

This is what I get:

Code:
[root@borg ~]# /data/scripts/cron/cpdev_backup 
parsing options: user=root,pass=q1w2e3r4

mount.cifs kernel mount options unc=//cpdev\data,ver=1,user=root,pass=q1w2e3r4 
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
premature script termination due to mount failure

This is my code:

Code:
if ! mount.cifs //cpdev/data /mnt/cpdev/ --verbose -o user=root,pass="q1w2e3r4" ro
then
echo "premature script termination due to mount failure"
exit
fi