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!
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.
Here's the scoop: I need to mount a samba share on my Macintosh from a user account in my Knoppix-powered Dell.
When I do, Knoppix seems to honor the group permissions found on the Mac, rather than the user permissions - meaning I can neither read nor wrote to certain directories unless I give those permissions to the group on the Mac itself - a lot of work since many directories don't have the group permissions I need.
I used to solve this problem in Red Hat by making an entry in FSTAB but here's the thing: when you boot into Knoppix it edits the FSTAB each time (even a HD install) and so my entries keep getting changed! I therefore have been using the following shell script to mount the shares, logged into a shell as root but using an ordinary user account in Knoppix (ie not logged into a root KDE session, etc)
If I use the identical scrpt, logged in as root (which of course I never usually do) I it appears that the permissions are fully opened - so the issue is not on the Mac side of things.
Is there any way to modify my syntax to give the correct permissions?
I'm not that familiar with Knoppix though, so I'm not sure how you'd go about making that stick after a reboot. I presume you could remaster the CD, if you're using a CD. Else place it in a script and run that script on bootup.
I found a flaw in my syntax, and now I am actually able to modify FSTAB to retain the smb shares on reboot. However, I still have the same issue that I had before: even though I specify the username in the fstab entry, only resources with "other" permissions can be read or written on the Mac.
I strongly suspect the following is the reason: while the username is the same on both machines, my primary username = UID 1000 in Knoppix but UID 501 on the Mac! I think that when I am logged in as root in KNoppix this distinction doesn't matter, but when when I am in the user account, the Knoppix PC isn't concerned that the username is the same on the Mac's files, it looks at the numeric UID and bases its permissions on that, despite my having dmask=777 and fmask=777 in the fstab entry. Any ideas as to why my dmask and fmask aren't working?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.