Linux - Networking This 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.
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.
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.
|
 |
08-26-2004, 12:03 PM
|
#1
|
LQ Newbie
Registered: Aug 2004
Posts: 3
Rep:
|
mapping a NT 2000 share to a linux box
Hi--to begin, thanks for your help. Also: I'm a newbie.
I have successfully mapped a NT 2000 share to /mnt/music.
As linux root, I am able to read and write to the folder on the 2000 box both from the mount point and from a network browse (i.e. smb://sharing@windows2000/) .
As a user, however, I only have read access. Attempts to change the file attributes or ownership (while as root) fail, the error message saying that the smb protocol doesn't support changing file attributes or that root has insufficient access rights. I don't think that's the problem though....I have a suspicion that my mount technique is somehow incorrect. The files permissions on the 2000 machine are set for full read/write, so the problem isn't there.
Here is my fstab entry:
//windows2000/music /home/cm/music smbfs username=sharing,password=default 0 0
Any ideas how I extend read/write permissions to the user level?
Thanks, I will respond quickly with any additional needed info.
I'm using SUSE 9.1 Personal.
|
|
|
08-26-2004, 12:22 PM
|
#2
|
Member
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226
Rep:
|
Your Fstab is allmost correct:
//windows2000/music /home/cm/music smbfs username=sharing,password=default 0 0
but it should read:
//windows2000/music /home/cm/music smbfs username=sharing,password=default,user 0 0
The user option shows mount that it is ok for a user to invoke mount on this mount point.
Then the user (you) should be the owner of the directory (mount point) _before_
you mount the share,
so as root you must issue a "chown cm /home/cm/music"
I know this is a little confusing, but smbmount (which is allso called if you issue a "mount -t smbfs")
expects this for security reasons.
Now if you mount the share as root, root will be the owner of the share,
if you mount with your own user account, it's yours.
AFAIK it is not possible to change the file attributes on the remote server over a samba share,
but I could be wrong about this.
Another option would be to fidle around with umask,fmask and dmask,
you have to rtfm mount for this.
|
|
|
08-26-2004, 01:35 PM
|
#3
|
LQ Newbie
Registered: Aug 2004
Posts: 3
Original Poster
Rep:
|
thanks for the reply.
i have now changed the permissions and ownership for the mountpoint to the 'user' level.
is there a way to mount the samba share from boot so that users can read and write?? (this is my real question, i suppose).
i've tried the tips on http://www.fedoraforum.org/forum/arc...p/t-1919.html, but they don't seem to be helping.
thanks for the help thus far--it's definitely got me back on track
|
|
|
08-26-2004, 01:44 PM
|
#4
|
LQ Newbie
Registered: Aug 2004
Posts: 3
Original Poster
Rep:
|
ok. problem solved! i'm so pleased in my naive, non-total-computer-geek way!! this was one of the final things pissing me off. next project: getting the ipod running
for those who may also be struggling with similar issues, this is the fstab line that finally got it done:
//ntcomputername/music /mnt/music smbfs username=sharing,password=default,rw,uid=billy,gid=users 0 0
weee!
thanks!
|
|
|
All times are GMT -5. The time now is 07:41 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.
|
Latest Threads
LQ News
|
|