funeralcrasher: (Default)
I've successfully mounted a network share with mount.cifs for the past 2 years using fstab with credfile.
//server/share                   /mnt/mycooldir         cifs    credentials=/etc/credfile,dom=mydomain,uid=123,gid=123,file_mode=0666,dir_mode=0755 0 0 
credfile:

Code:
username=foobar
password=1234  (ends here no line return after '4')


Yesterday I moved this system to a new datacenter, but did not alter fstab or the credfile. The //server/share directory has IP rules in place, but this was updated with the new system IP while we moved the system.

Now, I am mysteriously unable to automount //server/share. The local error is 13 (permission denied). The Windows server we are mounting returned a code that is defined as "username is valid but password is incorrect"

Again - no changes (content or permissions) were made to my credfile or fstab entry. I've restarted netfs a few times, including rebooting the system twice.

What is baffling is I can successfully mount //server/share via command line:

Code:
mount -t cifs //server/share /mnt/mycooldir -o username=foobar,password=1234


The username and passwords are identical in credfile and the mount options - I copied & pasted username / password from the credfile itself.

I'm at a loss. Help?

Date: 2009-12-03 11:46 pm (UTC)From: [identity profile] auntyjen.livejournal.com
you sure the cifs share is also not IP restricted?

i ran into this with a windows share that we moved
the window's admin had to allow the new ip

Date: 2009-12-04 01:30 am (UTC)From: [identity profile] pkbarbiedoll.livejournal.com
It is, but the IP addresses were updated when we moved it over.

The problem was caused by a bug in RHEL5 where a \n was added to the end of the credfile. Wrote the file with printf and was able to automount again. I was able to mount from command line all along.

Date: 2009-12-04 02:41 am (UTC)From: [identity profile] auntyjen.livejournal.com
we're almost a total redhat shop , and let me tell you that OS has some of the quirkiest bugs out there

and when boxes crash it gives you no info

I sooo miss Solaris with it's way of letting you know what's wrong before it crashes

(solaris)
I'm not feeling so well.
I really mean it, i think something is wrong.
I'm going to kill some programs that I think are hurting me
Nope that didn't do it, you'd better help
here's where i don't feel well
sorry, too late, i got to crash
(/solaris)


(linux)
Hey!! how's it going!!
me, i'm.....
crash
(/linux)

:-)
Edited Date: 2009-12-04 02:41 am (UTC)

Date: 2009-12-04 02:57 am (UTC)From: [identity profile] pkbarbiedoll.livejournal.com
random thought..
it seems like it was just last week that everyone was on geocities.. I think that's where I found antigen all those years ago? Or was that a mailing list somewhere? gah.. I'm gettin' old!

Date: 2009-12-04 03:02 am (UTC)From: [identity profile] auntyjen.livejournal.com
it was on the mother of all mail lists
transgen
:-)

Date: 2009-12-04 03:10 am (UTC)From: [identity profile] pkbarbiedoll.livejournal.com
oh wow. my first.
I'd forgotten transgen. amazingly.
I can barely remember some of the drama. Wasn't there a mentally challenged woman who posted for a while.. or didn't they turn out to be a troll or something.. gosh.. that goes way back!

Date: 2009-12-04 03:12 am (UTC)From: [identity profile] auntyjen.livejournal.com
there was always drama
it's the way of the internet

Profile

funeralcrasher: (Default)
funeralcrasher

June 2020

S M T W T F S
 123456
78910111213
141516 1718 1920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 26th, 2025 11:02 pm
Powered by Dreamwidth Studios