running:
# cat /etc/issue
CentOS-5.4 x86 (ks-3.03)
Kernel \r on an \m
Not Fedora
i have installed autofs, samba-client, samba-common (well updated them at least)
here is my /etc/auto.master:
Code:
[root@rx30 ~]# cat /etc/auto.master
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
/mnt/MYBOOK /etc/auto.MYBOOK
and the /etc/auto.MYBOOK:
Code:
[root@rx30 ~]# cat /etc/auto.MYBOOK
winbox -fstype=cifs,rw,noperm,password=XXXXX ://192.168.1.207/Public
i have started with
Code:
winbox -fstype=cifs,rw,noperm,user=XXXX,pass=XXXX ://192.168.1.207/Public
both still produce the same error in dmesg:
Code:
CIFS VFS: cifs_mount failed w/return code = -6
CIFS VFS: cifs_mount failed w/return code = -6
CIFS VFS: cifs_mount failed w/return code = -6
CIFS VFS: cifs_mount failed w/return code = -6
CIFS VFS: cifs_mount failed w/return code = -6
CIFS VFS: cifs_mount failed w/return code = -6
CIFS: Unknown mount option rx30
CIFS: Unknown mount option rx30
CIFS: Unknown mount option admin
CIFS: Unknown mount option admin
CIFS: Unknown mount option admin
CIFS: Unknown mount option admin
the google searching i have done indicated to try adding the workgroup:
so i changed the user=workgroup/XXXX that did not help either.
i can mount the device manually with the following:
Code:
mount -t cifs -o XXXXX,XXXXX //192.168.1.207/Public /mnt/MYBOOK/
when I do that i can read it as root, but not access it as user. I am trying to mount it so user can get to it when ever and how ever they want. most likely just a desktop icon ill create that points to the mount point.
http://wiki.centos.org/TipsAndTricks/WindowsShares
this is what i have been following to set things up:
Quote:
Once mounted through /etc/fstab the remote share remains mounted unless you umount it. This might cause problems if the remote share becomes unavailable, resulting in stale mounts. For example, the Windows machine you are connecting to might crash (surprise!) or the network might go down.
Automount comes in handy (if you don't already have autofs, install it by yum install autofs). Here is what you need to do. First create a mount point
mkdir /mymount
[Note: You can use any directory; make sure that directory exists]
To the /etc/auto.master file add a line like:
/mymount /etc/auto.mymount
Then edit the /etc/auto.mymount file you just entered:
winbox -fstype=cifs,rw,noperm,user=sushi,pass=yummy ://winbox/getme
Or by using the same credentials file as above:
winbox -fstype=cifs,rw,noperm,credentials=/root/secret.txt ://winbox/getme
Note that /etc/auto.mymount can be made world-unreadable, so, use of the credentials file is not as important as in the previous method.
[More note: If you cannot connect by the machine name but can connect by its IP address, then add wins on the hosts line of /etc/nsswitch.conf .]
When all is ready, run /sbin/service autofs restart as root.
Now try accessing the share by ls /mymount/winbox or by cd /mymount/winbox . It is dynamically loaded upon access. After some inactivity (default 60 seconds), the share will be unmounted.
[Note: Upon automounting, you may see an error mount_cifs.so: cannot open shared object file in /var/log/messages. This is harmless and can be safely ignored.]
|
but as you can see im stuck.