|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
NSLU2:/# groupadd smbuser NSLU2:/unterlagen# useradd -g smbuser s-manfred NSLU2:/unterlagen# passwd s-manfred Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully NSLU2:/unterlagen# smbpasswd -a s-manfred New SMB password: Retype new SMB password: NSLU2:/unterlagen# smbpasswd -e s-manfred Enabled user s-manfred. NSLU2:/unterlagen# |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# Date: 2009/12/01 21:07:34
[global]
workgroup = MAKO
server string = %h server
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
include = /etc/samba/dhcp.conf
[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[unterlagen]
comment = unterlagen
path = /unterlagen
writeable = yes
public = no
valid users = s-manfred
create = 0770
directory mode = 0770
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
NSLU2:/etc/samba# testparm
Load smb config files from /etc/samba/smb.conf
Can't find include file /etc/samba/dhcp.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[unterlagen]"
Unknown parameter encountered: "create"
Ignoring unknown parameter "create"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = MAKO
server string = %h server
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
include = /etc/samba/dhcp.conf
[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[unterlagen]
comment = unterlagen
path = /unterlagen
valid users = s-manfred
read only = No
directory mask = 0770
NSLU2:/etc/samba#
|
|
|
Source code |
1 |
drwxr-xr-x 3 root root 32768 Jan 1 1970 unterlagen |
wcf.user.option.userOption68: 64X2/8GB/Ubuntu10.04LTS
wcf.user.option.userOption65: anderes
Location: Berlin
Occupation: TK/IT Consulting and Engineering
|
|
Source code |
1 2 |
NSLU2:/# chown s-manfred /unterlagen chown: changing ownership of `/unterlagen': Operation not permitted |
. This post has been edited 1 times, last edit by "eXpli" (Feb 5th 2010, 3:32pm)
wcf.user.option.userOption68: debian lenny@NSLU und sheeva
wcf.user.option.userOption65: Debian
Location: zwischen Berlin und Leipzig
|
|
Source code |
1 |
su |
|
|
Source code |
1 2 |
cd / ls -la |
|
|
Source code |
1 |
chmod 777 /unterlagen |
|
|
Source code |
1 |
chmod 777 /unterlagen -R |
|
|
Source code |
1 |
drwxrwxr-x 4 root smbuser 4096 Feb 15 14:16 unterlagen |
.|
|
Source code |
1 2 3 |
NSLU2:/# su NSLU2:/# cd / NSLU2:/# chmod 777 /musik |
|
|
Source code |
1 |
drwxr-xr-x 2 root root 32768 Jan 1 1970 musik |
|
|
Source code |
1 2 |
NSLU2:/# chmod 775 /others -c mode of `/others' changed to 0775 (rwxrwxr-x) |
|
|
Source code |
1 2 3 |
NSLU2:/# ls -ltr total 205 drwxr-xr-x 3 root root 32768 Jan 1 1970 others |
This post has been edited 1 times, last edit by "eXpli" (Feb 15th 2010, 5:37pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
NSLU2:/var/share# ls -ltr total 20 drwxrwxrwx 2 root root 4096 Feb 5 16:49 unterlagen drwxr-xr-x 2 root root 4096 Feb 16 18:21 others drwxr-xr-x 2 root root 4096 Feb 16 18:21 musik drwxr-xr-x 2 root root 4096 Feb 16 18:21 bilder drwxr-xr-x 2 root root 4096 Feb 16 18:21 backup NSLU2:/var/share# chmod 777 /others NSLU2:/var/share# ls -ltr total 20 drwxrwxrwx 2 root root 4096 Feb 5 16:49 unterlagen drwxr-xr-x 2 root root 4096 Feb 16 18:21 others drwxr-xr-x 2 root root 4096 Feb 16 18:21 musik drwxr-xr-x 2 root root 4096 Feb 16 18:21 bilder drwxr-xr-x 2 root root 4096 Feb 16 18:21 backup NSLU2:/var/share# chmod 777 others NSLU2:/var/share# ls -ltr total 20 drwxrwxrwx 2 root root 4096 Feb 5 16:49 unterlagen drwxrwxrwx 2 root root 4096 Feb 16 18:21 others drwxr-xr-x 2 root root 4096 Feb 16 18:21 musik drwxr-xr-x 2 root root 4096 Feb 16 18:21 bilder drwxr-xr-x 2 root root 4096 Feb 16 18:21 backup NSLU2:/var/share# chmod 777 musik NSLU2:/var/share# chmod 777 bilder NSLU2:/var/share# chmod 777 backup NSLU2:/var/share# ls -la total 28 drwxrwxrwx 7 root root 4096 Feb 16 18:21 . drwxr-xr-x 14 root root 4096 Feb 5 16:48 .. drwxrwxrwx 2 root root 4096 Feb 16 18:21 backup drwxrwxrwx 2 root root 4096 Feb 16 18:21 bilder drwxrwxrwx 2 root root 4096 Feb 16 18:21 musik drwxrwxrwx 2 root root 4096 Feb 16 18:21 others drwxrwxrwx 2 root root 4096 Feb 5 16:49 unterlagen NSLU2:/var/share# chgrp smbuser unterlagen NSLU2:/var/share# ls-la -bash: ls-la: command not found NSLU2:/var/share# ls -la total 28 drwxrwxrwx 7 root root 4096 Feb 16 18:21 . drwxr-xr-x 14 root root 4096 Feb 5 16:48 .. drwxrwxrwx 2 root root 4096 Feb 16 18:21 backup drwxrwxrwx 2 root root 4096 Feb 16 18:21 bilder drwxrwxrwx 2 root root 4096 Feb 16 18:21 musik drwxrwxrwx 2 root root 4096 Feb 16 18:21 others drwxrwxrwx 2 root smbuser 4096 Feb 5 16:49 unterlagen NSLU2:/var/share# mount /dev/sdb9 NSLU2:/var/share# mount /dev/sdb8 NSLU2:/var/share# mount /dev/sdb7 NSLU2:/var/share# mount /dev/sdb6 NSLU2:/var/share# mount /dev/sdb5 NSLU2:/var/share# mount /dev/sda2 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/sda1 on /boot type ext2 (rw) /dev/sda6 on /home type ext3 (rw) /dev/sdb9 on /var/share/others type vfat (rw) /dev/sdb8 on /var/share/bilder type vfat (rw) /dev/sdb7 on /var/share/backup type vfat (rw) /dev/sdb6 on /var/share/musik type vfat (rw) /dev/sdb5 on /var/share/unterlagen type vfat (rw) NSLU2:/var/share# /etc/init.d/samba start Starting Samba daemons: nmbd smbd. NSLU2:/var/share# ls -ltr total 160 drwxr-xr-x 4 root root 32768 Jan 1 1970 unterlagen drwxr-xr-x 2 root root 32768 Jan 1 1970 others drwxr-xr-x 2 root root 32768 Jan 1 1970 musik drwxr-xr-x 2 root root 32768 Jan 1 1970 bilder drwxr-xr-x 2 root root 32768 Jan 1 1970 backup NSLU2:/var/share# |