-
Saving settings on smb server
Is it possible to save/restore configs.tbz to/from a windows box?
-
Senior Member
registered user
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 :-)
-
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 "[1mExtracting config archive $CONFIGS...[0m"
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 "[1mStarting daemons...[0m"
for i in ifupdown networking cupsys; do [ -x /etc/init.d/$i ] && /etc/init.d/$i start; done
-
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
-
By bonggo in forum Hardware & Booting
Replies: 4
Last Post: 09-08-2005, 04:25 AM
-
By ozgurgerilla in forum General Support
Replies: 1
Last Post: 04-19-2005, 11:00 AM
-
By punkpaddy in forum General Support
Replies: 2
Last Post: 12-04-2003, 08:45 AM
-
By ankit in forum Hardware & Booting
Replies: 1
Last Post: 09-14-2003, 03:23 AM
-
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
-
Forum Rules

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM
$1625.00

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed
$49.99

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001
$245.00

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p
$499.88

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD
$378.93

SK Hynix 32GB 2RX4 PC4-2666V DDR4 RDIMM Server Memory RAM, HMA84GR7AFR4N-VK
$169.95

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb
$374.99

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD
$149.99