LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2009, 10:33 AM   #1
babu198649
Member
 
Registered: Oct 2007
Posts: 160

Rep: Reputation: 30
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.

Last edited by babu198649; 05-02-2009 at 10:35 AM.
 
Old 05-04-2009, 04:12 AM   #2
linterrogate
LQ Newbie
 
Registered: Mar 2008
Distribution: debian
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by babu198649 View Post
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>
 
Old 05-04-2009, 08:36 AM   #3
raj_kaletla
LQ Newbie
 
Registered: May 2009
Location: hyderabad
Distribution: rhel 5.0
Posts: 1

Rep: Reputation: 0
how can i put an authentication for a folder in rhel5
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Automount ISO image unless automount is running in foreground! swests Linux - General 4 05-22-2009 01:47 AM
Samba automount with full rw permissions... buccaneere Linux - Networking 1 03-26-2009 08:21 AM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 01:34 PM
Samba PDC No automount keirvt Linux - Server 1 12-19-2006 06:28 PM
samba & autofs (automount) acb67 Linux - Networking 4 06-10-2004 11:57 AM


All times are GMT -5. The time now is 01:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration