LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mapping a NT 2000 share to a linux box (https://www.linuxquestions.org/questions/linux-networking-3/mapping-a-nt-2000-share-to-a-linux-box-222715/)

andy_Wa2x 08-26-2004 12:03 PM

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.

huibert.alblas 08-26-2004 12:22 PM

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.

andy_Wa2x 08-26-2004 01:35 PM

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

andy_Wa2x 08-26-2004 01:44 PM

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 05:44 AM.