Find the answer to your Linux question:
Results 1 to 4 of 4
hiya, When connecting to a Windows NETBIOS share with the mount command, eg: mount -tsmbfs //server/share /mnt/server_share -o -username=xyz Is there anyway that i can make the share readonly from ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284

    Readonly SMB connections?


    hiya,

    When connecting to a Windows NETBIOS share with the mount command, eg:
    mount -tsmbfs //server/share /mnt/server_share -o -username=xyz

    Is there anyway that i can make the share readonly from the side of the linux client?

    ie, atm it is read and write access the above command provides me with, what do i need to do (without modifying the windows machine) to my command to make the mount read only?

    Jason

  2. #2
    flw
    flw is offline
    Linux Engineer
    Join Date
    Mar 2003
    Location
    U.S.A.
    Posts
    1,025
    Don't know if it will work or not since most share info. out on the net is connecting a win box to a linux share not ther other way around but have you tried -r ?

    see http://us2.samba.org/samba/docs/man/smbmnt.8.html
    Dan

    \"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"

  3. #3
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    i just had a look at the script i am using, currently im using just "mount" as opposed to "smbmnt"

    I will have a go using smbmnt, cheers dude

    Jason

  4. #4
    Just Joined!
    Join Date
    Aug 2003
    Posts
    5
    You can always shared the name as readonly on the smb.conf
    # Share readonly to john and group engineer
    [application]
    comment = engineer
    path = /home/engineer
    public = no
    writable = no
    printable = no
    valid users = john,@engineer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •