LinuxQuestions.org
Visit Jeremy's Blog.
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 08-02-2012, 06:10 AM   #1
mailmerohit1988
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Rep: Reputation: Disabled
cifs share


hiee frnds.
m new to linux

can any1 tel me hw do i mount a cifs share from a filer onto my cifs client ?

thanks
 
Old 08-02-2012, 07:18 AM   #2
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
This is the basic
Code:
# mount.cifs //SERVERIP/shareddirectory /CLIENT/mount/point -o domain=somedomain,rw,file_mode=0777,dir_mode=0777,uid="$USER"
in my case I type this in terminal

Code:
# mount.cifs //10.0.0.8/Downloads /home/user1/Downloads -o domain=workgroup,rw,file_mode=0777,dir_mode=0777,uid="$USER"
Depending on what distro you are using you will have to download some packages.
Good luck to you
 
Old 08-02-2012, 07:46 AM   #3
mailmerohit1988
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
thanks .. may i knw war=ts d file mode nd uid?
 
Old 08-02-2012, 07:55 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
mailmerohit1988:
Please don't use text speak. I doubt anyone can decipher what your last question is.
 
1 members found this post helpful.
Old 08-02-2012, 08:04 AM   #5
mailmerohit1988
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
sorry.... i had asked whats a file_mode and the uid ?
 
Old 08-03-2012, 05:20 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The file mode is the permissiond to use. Such as rw-r----- or 0640 in octal form, which gives the owner read/write access. See the chmod man page for more info. fmask used to be used instead. It masks out permissions you don't want allowed.

UID is the user ID of the owner. GID is the ID of the group. You can use the user name instead.

A graphical client such as dokphin may allow you to enter your credentials. This is handy if you prefer to work in a GUI.

Please read the mount.cifs, fstab and mount man pages. Look at using the uid=...,cred=...,user,noauto options together in an fstab entry. They will allow you to mount the share as a regular user without having to remember and retype all the options.

If the server is a samba server,the user needs permissions on the directory being shared. The samba user should exist on the server. Look at the smbpasswd command to add users on the server and set the password. Remember to check that the firewall opens the ports you need for sharing and browsing.

Last edited by jschiwal; 08-03-2012 at 05:30 AM.
 
Old 08-03-2012, 06:06 AM   #7
mailmerohit1988
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
thank you so much jschiwal
 
  


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
[SOLVED] CIFS share on old WinNT host - smbclient works, mount -t cifs doesn't Electrode Linux - Networking 4 04-19-2012 10:11 AM
CIFS share does not umount at shutdown feffer777 Ubuntu 3 07-15-2010 04:20 AM
cifs remote share bobd72 Linux - Networking 2 06-04-2008 05:55 AM
Kerberos and CIFS network share MALDATA Linux - Server 4 04-10-2007 05:43 PM
CIFS samba share ronanio Linux - Software 1 11-06-2005 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05: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
Open Source Consulting | Domain Registration