Results 1 to 4 of 4

Thread: Saving settings on smb server

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    6

    Saving settings on smb server

    Is it possible to save/restore configs.tbz to/from a windows box?

  2. #2
    Senior Member registered user
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    100
    Assuming your windows box has a share called "knoppix_files" and the IP address 1.2.3.4 enter this on the commandline:

    <Code>
    mount -t smbfs -o userrname=NAME,passwd=SECRET //1.2.3.4/knoppix_files /mnt
    cp /path/to/config.tbz /mnt
    umount /mnt
    </Code>

    There may be more graphical solutions, but I'm a CLI guy :-)

  3. #3
    Junior Member
    Join Date
    Mar 2005
    Posts
    6
    Dear anchor,

    Your solution is simple yet very effective - it worked a treat!

    I added your code to the standard knoppix.sh as follows:

    #!/bin/sh
    [ "`id -u`" = "0" ] || { echo "You need root privileges to modify the system!" >&2 ; exit 1; }
    #<anchor's code modified to suit>
    mkdir /home/mysmb
    mount -t smbfs -o username=NAME,passwd=MYSECRET //192.168.0.1/my_knoppix_stuff /home/mysmb
    CONFIGS="/home/mysmb/configs.tbz"
    #<anchor's code ends>

    [ -f "$CONFIGS" ] || CONFIGS="$1/configs.tbz"
    [ -f "$CONFIGS" ] || CONFIGS="/cdrom/KNOPPIX/configs.tbz"
    [ -f "$CONFIGS" ] || CONFIGS="/mnt/floppy/configs.tbz"
    if [ -f "$CONFIGS" ]; then
    echo "Extracting config archive $CONFIGS..."
    tar -jpPtf "$CONFIGS" | while read i; do rm -f "$i"; done
    tar -jpPxf "$CONFIGS" ; chown -R knoppix.knoppix /home/knoppix
    fi
    killall pump 2>/dev/null && sleep 2 && killall -9 pump 2>/dev/null && sleep 2
    echo "Starting daemons..."
    for i in ifupdown networking cupsys; do [ -x /etc/init.d/$i ] && /etc/init.d/$i start; done

  4. #4
    Junior Member
    Join Date
    Nov 2005
    Location
    Dallas, Tx
    Posts
    1
    permissions on window share -
    From an smb (XP) box - make sure the share has permissions to allow 'full control' - or write control.
    I am still struggling with security differences and smb/samba permit differences between windows-Xp, windows-server2003, linux, and solaris. The linux/solaris/knoppix permits are no problem, but the differences between XP and 2003 are opaque, at best.

    If there is a FAQ (other than the samba FAQ's on the same) on getting knoppix full access quickly to winslop boxes, it would be appreciated. (Or even pointers to a FAQ section covering the same.)

    Angor's answer was spot on - and it tipped me to changing the permissions of the basic share, rather than attempting to set
    Window's permissions on a sub-directory (the normal human method, as I would see it) to be able to get write permission.

    Even though I was using a known windows username/password on the mount -t smbfs, all I was getting was 'read' permission.
    Tried using the 'administrator' route, and no luck either. The other 'windows' boxes have no problems reading/writing to the share,
    but even with the proper login credentials, gates had shut the gate to knoppix being able to write to the share.

    Thanks for the answer Angor, and the feedback tl1.

    Dave C.

Similar Threads

  1. USB key / Saving system settings
    By bonggo in forum Hardware & Booting
    Replies: 4
    Last Post: 09-08-2005, 04:25 AM
  2. saving settings
    By ozgurgerilla in forum General Support
    Replies: 1
    Last Post: 04-19-2005, 11:00 AM
  3. saving settings
    By punkpaddy in forum General Support
    Replies: 2
    Last Post: 12-04-2003, 08:45 AM
  4. saving settings
    By ankit in forum Hardware & Booting
    Replies: 1
    Last Post: 09-14-2003, 03:23 AM
  5. Saving settings to a URL?
    By true1ever in forum Ideas
    Replies: 3
    Last Post: 05-13-2003, 02:27 PM

Posting Permissions

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


OEM Genuine 42Wh WDX0R For DELL Inspiron WDXOR Battery 15 5567 5568 13 5368 7368 picture

OEM Genuine 42Wh WDX0R For DELL Inspiron WDXOR Battery 15 5567 5568 13 5368 7368

$22.99



OEM 68Wh 3HWPP Battery For Dell Latitude 5401 5501 5410 5510 E5411 E5511 picture

OEM 68Wh 3HWPP Battery For Dell Latitude 5401 5501 5410 5510 E5411 E5511

$28.99



OEM YRDD6 Battery For Dell Inspiron 3582 3593 3793 5493 5584 5593 5480 5590 5594 picture

OEM YRDD6 Battery For Dell Inspiron 3582 3593 3793 5493 5584 5593 5480 5590 5594

$15.02



Lot of 10OEM Dell Latitude 5420 5520 63WH Battery RJ40G M033W - Excellent picture

Lot of 10OEM Dell Latitude 5420 5520 63WH Battery RJ40G M033W - Excellent

$175.00



OEM Genuine 86WH 69KF2 Battery For Dell XPS 15 9500 Precision 5550 M59JH M15 M17 picture

OEM Genuine 86WH 69KF2 Battery For Dell XPS 15 9500 Precision 5550 M59JH M15 M17

$45.49



OEM 68Wh 3HWPP Battery For Dell Latitude 5401 5411 15 5501 5511 Precision 3541 picture

OEM 68Wh 3HWPP Battery For Dell Latitude 5401 5411 15 5501 5511 Precision 3541

$35.78



OEM 74WH 357F9 Battery For Dell Inspiron 15 7559 i7559 7557 i7557 5577 7567 5576 picture

OEM 74WH 357F9 Battery For Dell Inspiron 15 7559 i7559 7557 i7557 5577 7567 5576

$26.99



Lot of 5 Dell OEM 65W 7.4mm 19.5V 3.34A AC Adapters Mixed Models B Grade picture

Lot of 5 Dell OEM 65W 7.4mm 19.5V 3.34A AC Adapters Mixed Models B Grade

$36.99



New Dell OEM Inspiron 15 3511 15.6

New Dell OEM Inspiron 15 3511 15.6" Battery 11.25V 41Wh 3467mAh G91J0 MGCM5

$44.95



Lot of 5 OEM Dell Latitude 5420 5520 63WH Battery RJ40G M033W - Excellent picture

Lot of 5 OEM Dell Latitude 5420 5520 63WH Battery RJ40G M033W - Excellent

$99.99