Trouble allowing Windows Administrator user access to Samba share

Posted on 2007-10-16
Last Modified: 2013-12-23
Morning all,

I have a Sco Openserver 6 machine running Samba (unsure how to determine the version)

I need to be able to create a share on the Unix box that is accessible by a windows Administrator login, and can read files onthe Unix box as if logged in as root.

This is so that I can use Windows NTBackup to create a complete backup of the Unix box.

At present there is an operational Samba share which workstations can browse and access happily, provided they have an account on the unix box. It presents them with a share of their home directory on the unix machine.

I did try creating an Administrator user on the unix box, but the username is too long.

Can someone please guide me through creating a 'simple' root share ?

Question by:Robmonster
    LVL 8

    Accepted Solution

    edit file: /etc/samba/smb.conf

    append this lines at the end of the file:

    comment = Total
    path = /
    browseable = yes
    writable = yes
    valid users = yourname

    create a user in the box: "yourname"
    then map a drive to \\linuxbox\total with username "yourname" and yourpassword from the server.

    LVL 61

    Expert Comment

    Why you need to access files as root?
    You can use any user account.
    LVL 6

    Author Comment

    If I do not access the files as root then will I still be able to read files files that are only readable by root according to unix file permisisons...?

    LVL 61

    Expert Comment

    You can access files subject to their permissions. So make sure users create files that can be backed up.
    Is unix file read access essential to backup operation of ntbackup? I think not.
    LVL 6

    Author Comment

    @gheist: As explained I want to create a full backup of the machine, including system areas. That is why I wish to read the files as root, to ensure that I can read and backup all the files. I don't want to find out later on that a partcular file was not backed up due to a file permission error.

    @Mikkk: If I take your example, and set validusers = root then it sounds like it should work. I'll give it a try.
    LVL 61

    Expert Comment

    Linux has no secret system areas. Backup over samba will omit filesystem permissions an be of no value as a system backup.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
    PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now