Mounting Windows2003 shares in fstab makes them unusable(RHEL5.1_64)
Bashi, Enils
Enils.Bashi at FTIConsulting.com
Fri Apr 25 16:50:44 UTC 2008
Jeffrey,
I would suggest using mount with cifs as a filesystem type instead of smbfs.
This may get rid of your problems. From what I've read cifs is supposed to
be better.
$mount -t cifs -o username=<your_ad_username>,workgroup=<your_domain_name>
//source_dir/source_share your_mount_point
Regards,
Enils Bashi, RHCE, MCSE, SnortCP
Sr. Security Engineer\Information Technology Group
F T I
410.571.7003 direct
906 Commerce Road
Annapolis, MD 21401
www.fticonsulting.com
Confidentiality Notice:
This email and any attachments may be confidential and protected by legal
privilege. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the e-mail or any attachment is
prohibited. If you have received this email in error, please notify us
immediately by replying to the sender and then delete this copy and the
reply from your system. Thank you for your cooperation.
-----Original Message-----
From: redhat-sysadmin-list-bounces at redhat.com
[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Jeffrey Thomas
Sent: Friday, April 25, 2008 12:27 PM
To: redhat-sysadmin-list at redhat.com
Subject: Mounting Windows2003 shares in fstab makes them
unusable(RHEL5.1_64)
Red Hat Enterprise Linux 5.1 - 64bit
I am having some strange Samba/CIFS mounting issues. I am trying to mount
some Windows 2003 Server r2 file shares, and although I can mount them and
'ls' them, i cannot do anything with them. The files are being seen as
directories, I can CD to the files, and I can even CD to non-existant
directories. Can anyone look at the following info and help me out?
modinfo cifs |grep version
version: 1.48aRH
srcversion: A7F70DFEAE2BF6EBBDE18A1
[shell]
[root at plus mnt]# ls -la /mnt/data/
total 34642
drwxrwxrwx 1 root root 0 Apr 24 08:34 .
drwxr-xr-x 5 root root 4096 Apr 21 15:17 ..
-rwxrwxrwx 1 root root 132508 Feb 21 2007 0220EM.CSV
-rwxrwxrwx 1 root root 147776 Jun 13 2007 061307.CSV
-rwxrwxrwx 1 root root 232448 Jun 13 2007 061307.xls
[root at plus mnt]# file data/0220EM.CSV
data/0220EM.CSV: directory
[/shell]
0220EM.CSV is NOT a directory but a file. Additionally, if I CD to that
directory and 'ls' there it gives me the same output as the /mnt/data/
directory does, meaning its recursing upon itself or something.
Additionally I can 'cd /mnt/data/fakedir/' and (1) it actually goes there,
and (2) 'ls' gives the same output as 'ls /mnt/data/' :
[shell]
[root at plus mnt]# cd data/fakedir
[root at plus fakedir]# ls -la
total 34634
drwxrwxrwx 1 root root 0 Apr 24 08:34 .
drwxrwxrwx 1 root root 0 Apr 24 08:34 ..
-rwxrwxrwx 1 root root 132508 Feb 21 2007 0220EM.CSV
-rwxrwxrwx 1 root root 147776 Jun 13 2007 061307.CSV
-rwxrwxrwx 1 root root 232448 Jun 13 2007 061307.xls
-rwxrwxrwx 1 root root 27990 Apr 21 13:55 0804GB.txt
[/shell]
This is my current /etc/fstab:
[shell]
[root at plus ~]# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/var /var ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
\\exchange\import /mnt/import cifs
credentials=/root/.cred,gid=500,uid=500,file_mode=0777,dir_mode=0777 0 0
\\exchange\mmnew /mnt/mmnew cifs
credentials=/root/.cred,user,gid=500,uid=500,file_mode=0777,dir_mode=0777 0
0
\\exchange\brokerline /usr/MAIL.ATTACH cifs
credentials=/root/.cred,gid=500,uid=500,file_mode=0777,dir_mode=0777 0 0
\\exchange\data /mnt/data cifs
credentials=/root/.cred,gid=500,user,uid=500,file_mode=0777,dir_mode=0777 0
0
## 'smbfs' gives the error, "mount: unknown filesystem type 'smbfs' "
##//exchange/data /mnt/data smbfs
credentials=/root/.cred,gid=500,user,uid=500,file_mode=0777,dir_mode=0777 0
0
[root at plus ~]# file /mnt/data/0220EM.CSV
/mnt/data/0220EM.CSV: directory
[root at plus ~]# cd /mnt/data/0220EM.CSV
[root at plus 0220EM.CSV]# ls
0220EM.CSV
061307.CSV
061307.xls
....
....
[/shell]
--
redhat-sysadmin-list mailing list
redhat-sysadmin-list at redhat.com
https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7445 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20080425/ed1bac7e/attachment.bin>
More information about the redhat-sysadmin-list
mailing list