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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-02-2012, 06:10 AM
|
#1
|
LQ Newbie
Registered: Aug 2012
Posts: 6
Rep:
|
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
|
|
|
08-02-2012, 07:18 AM
|
#2
|
Senior Member
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444
|
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
|
|
|
08-02-2012, 07:46 AM
|
#3
|
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep:
|
thanks .. may i knw war=ts d file mode nd uid?
|
|
|
08-02-2012, 07:55 AM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
mailmerohit1988:
Please don't use text speak. I doubt anyone can decipher what your last question is.
|
|
1 members found this post helpful.
|
08-02-2012, 08:04 AM
|
#5
|
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep:
|
sorry.... i had asked whats a file_mode and the uid ?
|
|
|
08-03-2012, 05:20 AM
|
#6
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
08-03-2012, 06:06 AM
|
#7
|
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep:
|
thank you so much jschiwal
|
|
|
All times are GMT -5. The time now is 05:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|