LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-07-2012, 09:45 PM   #1
cbjulio
LQ Newbie
 
Registered: Feb 2011
Location: Espigão do Oeste - RO - Brazil
Posts: 4

Rep: Reputation: 0
Automount samba + fstab + ubuntu


Hello!
I'm looking for a way to mount a share in my ubuntu. I need a automount when PC starts...
How can i do that with /etc/fstab ?
I need put my share 192.168.1.200/share (with username and passord) in my client (ubuntu) /hoje/julio/Desktop/share ...
Any help?
Thanks

My fstab:

julio@julio-ubuntu:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=4279c908-b824-4d15-967a-64b62c903cd1 / ext4 errors=remount-ro,user_xattr 0 1
# swap was on /dev/sda5 during installation
UUID=dcf7a6dd-fbb1-4c9b-bdc9-69284dd69d53 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
 
Old 02-07-2012, 10:12 PM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 393

Rep: Reputation: 37
//server/share /mountpoint/on_linux cifs username=user,password=pass 0 0
 
1 members found this post helpful.
Old 02-08-2012, 08:36 PM   #3
cbjulio
LQ Newbie
 
Registered: Feb 2011
Location: Espigão do Oeste - RO - Brazil
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cbtshare View Post
//server/share /mountpoint/on_linux cifs username=user,password=pass 0 0
Hello buddy!
Thanks! That works pretty good! i just put another detail to give permission (i found in another forum) ... uid=1000,gid=1000...i don't know how it works, but i know it works for me "uid=1000"...what this means? gid=1000...
here is my line:
//192.168.1.200/casa /home/julio/casa cifs username=xxxxx,password=xxxxx,gid=1000,uid=1000 0 0

Thanks again!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting RW (read write) SMB (Samba) shares via FSTAB - Ubuntu 10.10 bcyork Linux - Networking 2 12-09-2010 02:43 PM
How to access fstab to automount in Kubuntu? brinesharks Linux - Newbie 4 07-12-2010 07:11 AM
NFS automount using fstab priyarao Linux - Newbie 1 08-05-2008 10:13 AM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 12:34 PM
automount vs fstab Walter Sobchek Linux - Networking 10 08-16-2004 09:23 AM


All times are GMT -5. The time now is 05:39 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration