Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi all. Well first off i am using a cobalt qube 3 sever which uses linux 2.4 (thats why am here) and this is what i want to know? How ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Posts
    6

    How do i add a second hard drive to use for unrestricted file sharing? no user privileges/rights,etc


    Hi all.

    Well first off i am using a cobalt qube 3 sever which uses linux 2.4 (thats why am here) and this is what i want to know?

    How do i add a second hard drive to use for unrestricted file sharing?

    By this i mean no user privileges/rights, etc.. etc.. etc.. just a free for all area.

    I have been able to get my new hard drive partitioned, formated and mounted as "/home1" and i have started editing the smb.conf file to share the whole drive out.

    I have been able to get it so i can view the share in my win xp machine but i am not able to write anything to it, i get access denied. This is the code i added to the bottom if the smb.conf file, what am i doing wrong?

    ;;start unrestricted area.
    [Shared]
    comment = shared drive
    available = 1
    path = /home1
    guest only = yes
    writable = yes
    browsable = yes
    public = yes
    create mask = 777
    directory mask = 777
    guest ok = true
    ;;end unrestricted area.


    __________________________________________________ __________________
    -----------------------------------------------------------------------------------------------
    here is a copy of my smb.conf file, which my help.
    -----------------------------------------------------------------------------------------------

    ; Samba Configuration
    ; Revision 1.0 for the 2700RJ, jdblair@cobaltnet.com 17.oct.98
    ;
    ; DO NOT USE THE \ CONTINUATION! THE QUBE PARSING CODE WILL CHOKE ON IT!
    ;
    [global]
    max connections = 25
    guest account = guest-share
    client code page = 850
    workgroup = LOANE-NET
    domain logons = no
    domain master = no
    wins support = no
    printer admin = @winshare
    log file = /var/log/samba/log
    time server = yes
    logon home = \\%L\%U
    logon path = \\%L\profiles\%U\profile
    add user script = /sbin/addWindowsMachine.pl
    domain admin group = @winshare
    username map = /etc/samba/smbusers
    nt acl support = yes
    map to guest = bad user
    server string = Cobalt Qube 3
    os level = 1
    short preserve case = yes
    preserve case = yes
    local master = yes
    lock directory = /var/lock/samba
    locking = yes
    strict locking = yes
    security = user
    socket options = TCP_NODELAY
    max log size = 5000
    veto files = /Network Trash Folder/.AppleDouble/.AppleDesktop/Icon
    /
    encrypt passwords = yes
    dead time = 5
    debug level = 1
    dns proxy = no
    local master = yes
    preferred master = yes
    alternate permissions = no
    browseable = yes
    case sensitive = no
    default case = upper
    delete readonly = yes
    follow symlinks = yes
    locking = yes
    mangle case = no
    map hidden = yes
    map system = yes
    oplocks = yes
    preserve case = yes
    short preserve case = yes
    strict locking = yes
    delete veto files = yes
    wide links = yes
    security mask = 777
    directory security mask = 777
    ;
    [homes]
    comment = Home Directories
    browseable = no
    read only = no
    create mask = 0755
    ;
    ;;home begin -- do not edit this line
    [home]
    available = 1
    comment = share for home
    valid users = admin @home
    create mask = 664
    directory mask = 775
    path = /home/groups/home
    writeable = yes
    ;;guest ok = true
    ;
    ;;home end -- do not edit this line
    ;;guest-share begin -- do not edit this line
    [guest-share]
    available = 1
    comment = share for guest-share
    create mask = 664
    directory mask = 775
    path = /home/groups/guest-share
    writeable = yes
    guest ok = true
    ;
    ;;guest-share end -- do not edit this line
    ;;restore begin -- do not edit this line
    [restore]
    available = 1
    comment = share for restore
    valid users = admin @restore
    create mask = 664
    directory mask = 775
    path = /home/groups/restore
    writeable = yes
    ;;guest ok = true
    ;
    ;;restore end -- do not edit this line

    [netlogon]
    browseable = yes
    comment = Network Logon Service
    guest ok = yes
    writeable = no
    share modes = no
    path = /home/netlogon

    [profiles]
    guest ok = no
    writeable = yes
    path = /home/profiles

    ;;start printers section. DO NOT EDIT THIS LINE
    [printers]
    available = 0
    path = /var/spool/samba
    print ok = yes
    printing = lprng
    load printers = yes
    guest ok = no
    printcap file = /etc/printcap
    print command = /usr/bin/lpr -P%p -r %s
    lpq command = /usr/bin/lpq -P%p
    lprm command = /usr/bin/lprm -P%p %j
    lppause command = /usr/sbin/lpc hold %p %j
    lpresume command = /usr/sbin/lpc release %p %j
    queuepause command = /usr/sbin/lpc -P%p stop
    queueresume command = /usr/sbin/lpc -P%p start
    ;;end printers section. DO NOT EDIT THIS LINE

    ;;start print section. DO NOT EDIT THIS LINE
    [print$]
    path = /usr/local/samba/printers
    guest ok = yes
    browseable = yes
    read only = yes
    write list = @winshare,root
    ;;end print section. DO NOT EDIT THIS LINE

    ;;start unrestricted area.
    [Shared]
    comment = shared drive
    available = 1
    path = /home1
    guest only = yes
    writable = yes
    browsable = yes
    public = yes
    create mask = 777
    directory mask = 777
    guest ok = true
    ;;end unrestricted area.

    __________________________________________________ __________________
    -----------------------------------------------------------------------------------------------

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,864
    Make sure that plain text passwords are turned on in Windows XP.

    Add Force Group and Force User settings to the share.

    I'd also consider formatting the hard drive using FAT32 as well - that would remove any unix permissions whatsoever!
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    Sep 2005
    Posts
    6
    didn't really get much chance to work with my server until now. I decided to format my drive as fat32.

    and here is my fstab entry:

    /dev/hdb1 /shared vfat defaults,umask=000 0 0

    and here is my smb.conf entry:

    ;;start unrestricted area.
    [Shared]
    comment = Shared Drive - FAT32
    path = /shared
    guest ok = true
    browseable = yes
    writeable = yes
    read only = no
    public = yes
    create mask = 0777
    directory mask = 0777
    ;;end unrestricted area.

    I can now create files and folders in my new shared drive using my win xp machine but the files are not visible, although the folders however are. What have i done wrong and how do i correct this.

  4. #4
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,864
    You probably need to a client-end refresh after creating files; sometimes things get out of sync. Try pressing F5 on the windows view.
    Linux user #126863 - see http://linuxcounter.net/

  5. #5
    Just Joined!
    Join Date
    Sep 2005
    Posts
    6
    restarted both the server and the client machine but still the same thing happens, i can create/transfer both folders and files, but only the folders are visible in windows pc.

  6. #6
    Just Joined!
    Join Date
    Sep 2005
    Posts
    4
    Have you checked to makesure the files are not hidden? Linux might be making hidden files when you transfer them.

  7. #7
    Just Joined!
    Join Date
    Sep 2005
    Posts
    6
    The files are there but they are hidden when i use my FTP client to log on yo the server i can few the files then.

    How do i make the visible?

  8. #8
    Just Joined!
    Join Date
    Sep 2005
    Posts
    4
    on windows you can click on "i believe" tools, folder options and click on show hidden files, also you can right click on the foler and make sure it's not clicked hidden in the properties;

  9. #9
    Just Joined!
    Join Date
    Sep 2005
    Posts
    6
    i have tried that but still no go. the files still stay hidden from and of my windows machines. but it is defiantly there when i connect using FTP and i can delete it from within there.

  10. #10
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,864
    Have you still got:

    available = 1

    in your share definitions? It should be 'available = yes' or 'available = no'!

    You could be confusing samba.
    Linux user #126863 - see http://linuxcounter.net/

Page 1 of 2 1 2 LastLast

Posting Permissions

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