Slackware This Forum is for the discussion of Slackware Linux.
|
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-28-2008, 11:19 AM
|
#1
|
|
Member
Registered: Dec 2006
Posts: 271
Rep:
|
Mounting CIFS with write permissions
Code:
root@tpt60:~# umask
0022
root@tpt60:~# mount -t cifs //192.168.1.100/SharedDocs /mnt/cifs --verbose -o guest,user=me,uid=me,gid=users,rw
parsing options: rw,guest,user=me,uid=1000,gid=100
mount.cifs kernel mount options unc=//192.168.1.100\SharedDocs,ip=192.168.1.100,ver=1,rw,guest,user=me,uid=1000,gid=100
root@tpt60:~# ls -ld /mnt/cifs
dr-xr-xr-x 1 me users 0 2008-12-26 12:07 /mnt/cifs/
Why aren't there write permissions for /mnt/cifs ? I can't write to the share with a regular user "me"
|
|
|
|
12-28-2008, 01:31 PM
|
#2
|
|
Member
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 474
Rep:
|
Is your share mounted rw on the server? I'm using "user" security in my smb.conf. Here is the way I mount on the server:
Quote:
|
/dev/hdb1 /mnt/hal ntfs-3g auto,uid=1000,gid=100,dmask=007,fmask=117
|
Then on the client (in /etc/fstab):
Quote:
|
//server/hal /mnt/hal cifs auto,credentials=/home/user/.creds,nobrl
|
My credentials file is:
Quote:
username=user
password=passwd
|
The ids & masks are automagically the same on the client as on the server.
Regards,
Bill
|
|
|
|
12-28-2008, 11:29 PM
|
#3
|
|
Member
Registered: Dec 2006
Posts: 271
Original Poster
Rep:
|
This is a windows XP share though.
|
|
|
|
12-29-2008, 07:56 AM
|
#4
|
|
LQ Newbie
Registered: Dec 2008
Location: NYC
Distribution: Slackware 12.2
Posts: 5
Rep:
|
|
|
|
|
12-30-2008, 03:46 PM
|
#5
|
|
Member
Registered: Dec 2006
Posts: 271
Original Poster
Rep:
|
I tried disabling the Unix Extensions, but that didn't help. It still doesn't show write permissions after I re-mount the windows share.
This worked fine prior to 12.2 upgrade.
Last edited by alkos333; 12-30-2008 at 04:35 PM.
|
|
|
|
03-02-2012, 12:16 PM
|
#6
|
|
LQ Newbie
Registered: Mar 2012
Posts: 1
Rep: 
|
mount.cifs with write access
To get the write access for the user who will be using the mount you need to assign the uid and gid options when creating the mount (example):
mount.cifs //server/share /home/mrodri/mountpoint -o rw,credentials=/home/mrodri/.creds,gid=502,uid=502
//server/share is the servername and share that you want to connect to
/home/mrodri/mountpoint is the mountpoint at folder mountpoint of user mrodri
credentials point to a hidden file .creds of a format like:
username=mrodri
password=_password_
domain=_NTdomain_
uid and gid are the user id and group id assigned by linux to the mrodri user. Check those with your user administration program, centos 6, system-administration-users and groups
this worked for me.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:59 PM.
|
|
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
|
|