Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
sudo mount -t cifs //wollemi/shared/imageTest -o username=name,password=password /images
Each time I have view access but not write access. If I browse to the windows share via 'Places' > 'Network' > 'Windows Network' etc. then I do have write access, as soon as I mount it to /images, I loose write access. I also did a ls -la before the mount and the permissions were rwx-rwx-rwx and owned by me, after the mount it was rwx-r_x-r_x and owned by root. When I unmount it, /images reverts back to my ownership.
In order to access this share via DigiKam I need to mount it to the filesystem, but as soon as I do I loose write access.
Microsoft does not support all of the CIFS extentions. Use the "uid=", "gid=", "umask" & "fmask" options to change the ownership and permissions of the share after it is mounted. Also check the how the windows share is setup. If it is a read-only share, you won't be able to mount it rw.
Also make sure that the windows user is an samba user with smbpasswd. Another thing I would recommend is creating a credentials file in your home directory and using a "cred=" option pointing to this file. The /etc/fstab file is world readable so you shouldn't have passwords in it.
Use the "uid=", "gid=", "umask" & "fmask" options to change the ownership and permissions of the share after it is mounted.
I did this:
Code:
tparks@d600:/$ id
uid=1000(tparks) gid=1000(tparks) groups=4(adm),20(dialout),24(cdrom),46(plugdev),104(lpadmin),115(admin),120(sambashare),1000(tparks)
Not really sure what to do with that info, could you please explain?
Distribution: Ubuntu 11.04, Mint 11.11, Xubuntu 11.11
Posts: 458
Original Poster
Rep:
That worked!
I only used the first line and I put my username and password in as I do not yet know how to create a credentials file, but I assume that there is enough in your post for me to figure it out. I am, for now, simply happy that I have write access. I am not sure what the 2nd and 3rd lines do, but I will look into them and figure it out.
I am going to put that in my fstab file for now while I figure the rest out. Thanks again!
The fstab file has it's own manpage. You were very close however. You have an -o before the options which you would use when entering a mount command.
Also, check your file_mode & dir_mode values.
For the credentials file, create a text file in your home directory with at least the first 2 lines:
username=<your username>
password=<your password>
domain=<windows domain or workgroup name>
I used the name .credentials so it would be hidden. In /etc/fstab or mount command options, use the full path to the file.
I realized you already found a solution to your problem, but I still thought my method for mounting my most frequently used windows shares might be useful to you:
(FYI: I'm using Debian Squeeze with LXDE as my desktop environment.)
This example is for mounting my samba NAS.
I installed smbfs.
I created the following directories /home/username/mnt and /home/username/mnt/nas
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.