LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   automount and samba (https://www.linuxquestions.org/questions/linux-newbie-8/automount-and-samba-723145/)

babu198649 05-02-2009 09:33 AM

automount and samba
 
Hi,
I want to automount windows shared folder on linux(opensuse-11).
My /etc/auto.master file looks like this.
Code:

#
# 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

/etc/auto.misc file looks
Code:

#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

cd                -fstype=iso9660,ro,nosuid,nodev        :/dev/cdrom

samba          -fstype=smbfs,username=subbu,password=srpr ://192.168.1.15/12

I get a folder created by the name samba in the /misc directory but when i try to access it i get error.
Code:

Opensuse:/misc # ls
cd  samba
spanwaveOpensuse:/misc # cd samba
bash: cd: samba: No such file or directory

How to solve this.
Thanks in advance.

linterrogate 05-04-2009 03:12 AM

Quote:

Originally Posted by babu198649 (Post 3527714)
Hi,
I want to automount windows shared folder on linux(opensuse-11).
My /etc/auto.master file looks like this.
Code:

#
# 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

/etc/auto.misc file looks
Code:

#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

cd                -fstype=iso9660,ro,nosuid,nodev        :/dev/cdrom

samba          -fstype=smbfs,username=subbu,password=srpr ://192.168.1.15/12

I get a folder created by the name samba in the /misc directory but when i try to access it i get error.
Code:

Opensuse:/misc # ls
cd  samba
spanwaveOpensuse:/misc # cd samba
bash: cd: samba: No such file or directory

How to solve this.
Thanks in advance.

try sth like this:
drv -fstype=cifs,dom=DOM,credentials=<path>,uid=me,gid=my,file_mode=0666,dir_mode=0777 ://<dest>

raj_kaletla 05-04-2009 07:36 AM

how can i put an authentication for a folder in rhel5


All times are GMT -5. The time now is 12:44 AM.