Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have some smb shares I want mounted on startup on my SuSE 10.1 workstation. The only problem is that when they are mounted they are only read-only - I cannot otherwise interact with the data. If I do an smb://server/share and provide the same creds I use for the mount I have full access (as I should). When I created the local mount points in /mnt/samba I created a group, set this group as the owner of /mnt/samba and added myself to the group. I then made sure to set 770 on /mnt/samba.
My /etc/fstab has lines like the one here:
//server/share /mnt/samba/share smbfs rw,credentials=/home/user/smb-credentials.txt 0 0
All of the shares mount but again in read only. What did I miss? Thanks in advance for any help.
I'm no expert - it took me forever to sort out samba last time I was running it, but things like that always seemed more connected to the smb.conf i.e. it didn't matter what I had set for various files etc, if I had the perms set wrongly in the smb.conf it didn't want to play nice.
AFAIK, there is no connection between the Samba client (used to mount remote shares), and the smb.conf file. Also, AFAIK, the smbmount tool gets all of it's configuration parameters from the command line.
Can you please post the relevant line from your /etc/fstab file?
This is an example of a line from my fstab file. Note that if I go to this share using smb://server/share and supply the same credentials as are listed in smb-credentials.txt I have read/write to the data.
I think you need to supply a uid &/or gid parameter in your fstab entry. The mounting is done by root at boot time, and that makes the user & group root, in the absense of any other information. When you connect to the share as you, you are granted user and group ownership, which includes rw access.
Credentials have nothing to do with any of this; they are simply the username & password used to satisfy the windows/samba server of your authenticity to access the share.