In redhat, if you change the fstab, do you have to sync it or something?
Red HatThis forum is for the discussion of Red Hat 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.
The smbfs filesystem is obsolete and not included in newer kernels. Use cifs instead. That has better support for Linux permissions including acls. If the server doesn't support cifs, then the uid, gid, file_mask and dir_mask options are fallback options. I noticed that your fstab options don't include the file_mode & dir_mode options or the uid or gid options. You can use either the numeric or text values for the user & group options (uid= & gid=).
On the server side, the person or group member accessing the share also need permission to access the directory being shared. If you are mounting the share with "gid=users", then the group owner of the directory being shared should be "users" or "others" should have write permissions.
Also, there are different password backends that you might be using. The default security mode is "security = user", with user account information contained in the smbpasswd file. If this is the case, users should be Linux users on a samba server, and should have their usernames and passwords entered using the smbpasswd file. You might use ldap or a password database backend instead.
If you made changes in the server, then you need to restart the samba service on the server. The nmbd service could be restarted on the client.
Changing the fstab entry to use a credentials file was the right thing to do. Otherwise any user on that client would be able to read the password.
The windows boxes can read/write to the share fine. I can also read/write as root no problem, but I cannot read/write as the user 'graphics' (who is in the group 'users' which is gid 100).
yes, i have umounted / mounted the share after each time.
the 'mount' command shows:
//10.0.10.89/exchange on /usr/graphicStore1 type cifs (rw,mand)
edit: for the record, the share is hosted on a FreeBSD box with SAMBA 3.0.32, and has been of no issue with any other machines than this one.
Thank you again for your responses, any ideas?
Last edited by soylentgreen; 12-11-2008 at 09:30 PM..
1) do I need to 'resync' the fstab or something to get it to read the line the 'new' way?
Yes. /etc/fstab is read and executed at boot. If you make changes to /etc/fstab they will not take effect automatically until the next boot.
If you want your changes to /etc/fstab to take effect immediately then you should issue a mount -a command. Read about the mount command in the mount man pages before you try a mount -a.
Distribution: Fedora 11, CentOS 5.3, Linux Mint 5, Solaris 10
Posts: 1,260
Thanked: 35
Quote:
Originally Posted by jailbait
Yes. /etc/fstab is read and executed at boot. If you make changes to /etc/fstab they will not take effect automatically until the next boot.
If you want your changes to /etc/fstab to take effect immediately then you should issue a mount -a command. Read about the mount command in the mount man pages before you try a mount -a.
-------------------
Steve Stites
Also a mount -o remount /mount/point would work too.
Distribution: freeBSD, Slackware, Ubuntu, Redhat when i have to.
Posts: 221
Thanked: 0
Original Poster
Quote:
Originally Posted by jailbait
Yes. /etc/fstab is read and executed at boot. If you make changes to /etc/fstab they will not take effect automatically until the next boot.
If you want your changes to /etc/fstab to take effect immediately then you should issue a mount -a command. Read about the mount command in the mount man pages before you try a mount -a.
-------------------
Steve Stites
I appreciate your response; we are kind of past that part now. I was asking specifically about Red Hat, not fstab in general.
Perhaps you didn't see the part where I stated that I have re-mounted the share -several- times, with no read / write for the user.
Now the question is the syntax, and why the user is unable to read/write.
Last edited by soylentgreen; 12-12-2008 at 10:27 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.