Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: Ubuntu-Forum & Kubuntu-Forum | www.Ubuntu-Forum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

lexd1

User

  • »lexd1« ist der Autor dieses Themas

Beiträge: 5

Registrierungsdatum: 02.10.2008

Derivat: Ubuntu

Architektur: 64-Bit PC

  • Nachricht senden

1

05.09.2009, 22:07

Ubuntu 8.04 Server LTS Festplatten freigeben

Hallo Leute,
es gibt nach einer Neuinstallation des Server wieder einige Probleme mit der Freigabe und Zugriff im Netz.
Windows kommt auf den Rechner aber nicht auf die (Platten) Ordner Disk 1 -3.

Quellcode

1
Auf Ubuntuserver kann nicht zugegriffen werden bla bla bla ..............Der Gruppenname konnte nicht gefunden werden.

Testparm

Quellcode

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
root@ubuntuserver:~# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[Disk1]"
Processing section "[Disk2]"
Processing section "[Disk3]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = XXXXXXXXXX
        server string = %h server (Samba, Ubuntu)
        map to guest = Bad User
        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$
        username map = /etc/samba/smbusers
        unix password sync = Yes
        syslog = 0
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        invalid users = root

[printers]
        comment = All Printers
        path = /var/spool/samba
        write list = root, @XXXXXXXXXX
        create mask = 0700
        guest ok = Yes
        printable = Yes
        browseable = No

[Disk1]
        path = /mnt/Disk1
        force user = lexd1
        force group = users
        read only = No
        create mask = 0664
        directory mask = 0775
        guest ok = Yes

[Disk2]
        path = /mnt/Disk2
        force user = lexd1
        force group = users
        read only = No
        create mask = 0664
        directory mask = 0775
        guest ok = Yes

[Disk3]
        path = /mnt/Disk3
        force user = lexd1
        force group = users
        read only = No
        create mask = 0664
        directory mask = 0775
        guest ok = Yes


fdisk -l

Quellcode

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
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006fd06

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       60801   488384001   83  Linux

Disk /dev/sdb: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000ea853

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       47913   384861141   83  Linux
/dev/sdb2           47914       48641     5847660    5  Extended
/dev/sdb5           47914       48641     5847628+  82  Linux swap / Solaris

Disk /dev/hdc: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xad65a933

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1       24321   195358401   83  Linux
/dev/hdc2           24322       48641   195350400   83  Linux


samba

Quellcode

1
2
3
4
5
ls -l /mnt/
total 36
drwxrwxrwx 62 root root 12288 2009-07-07 17:36 Disk1
drwxrwxrwx 14 root root 12288 2009-07-04 09:18 Disk2
drwxrwxrwx 62 root root 12288 2009-07-07 17:36 Disk3


Quellcode

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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
#======================= Global Settings =======================

[global]
  workgroup = XXXXXXXXXX
  server string = %h server (Samba, Ubuntu)
;  wins support = yes
;  wins server = 192.168.1.30

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast
username map = /etc/samba/smbusers
map to guest = bad user
guest account = nobody
#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = true



#### Debugging/Accounting ####
# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
;   security = user

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
   passdb backend = tdbsam

   obey pam restrictions = yes

;   guest account = nobody
   invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the

# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de$
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n$

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how nsuccessful authentication attempts are mapped
# to anonymous connections
map to guest = bad user
########## Domains ###########

# Is this machine able to authenticate users. Both PDC and BDC
# must have this setting enabled. If you are the BDC you must
# change the 'domain master' setting to no
#
;   domain logons = yes
#
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of the user's profile directory
# from the client point of view)
# The following required a [profiles] share to be setup on the
# samba server (see below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
;   logon path = \\%N\%U\profile
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
;   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;   printing = cups
;   printcap name = cups

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
;   domain master = auto

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

# The following was the default behaviour in sarge,
# but samba upstream reverted the default because it might induce
# performance issues in large organizations.
# See Debian bug #368251 for some of the consequences of *not*
# having this setting and smb.conf(5) for details.
;   winbind enum groups = yes
;   winbind enum users = yes

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares.  This will share each
# user's home directory as \\server\username
#[homes]
#   comment = Home Directories
#   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
#  read only = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
#   create mask = 0700

# Directory creation misk is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
#   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.  Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# This might need tweaking when using external authentication schemes
;   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes
;   share modes = no

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = yes
;   browseable = yes
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   path = /var/spool/samba
   printable = yes
   guest ok = yes
   read only = yes
   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
;[print$]
;   comment = Printer Drivers
;   path = /var/lib/samba/printers
;   browseable = yes
;   read only = yes
;   guest ok = yes
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
   write list = root, @XXXXXXXXXX

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = yes

# The next two parameters show how to auto-mount a CD-ROM when the
#       cdrom share is accesed. For this to work /etc/fstab must contain
#       an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
# 
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#       is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom

[Disk1]
path = /mnt/Disk1
guest ok = yes
writeable = yes
browseable = yes
create mode = 0664
directory mode = 0775
force user = lexd1
force group = users


[Disk2]
path = /mnt/Disk2
guest ok = yes
writeable = yes
browseable = yes
create mode = 0664
directory mode = 0775
force user = lexd1
force group = users

[Disk3]
path = /mnt/Disk3
guest ok = yes
writeable = yes
browseable = yes
create mode = 0664
directory mode = 0775
force user = lexd1
force group = users


Quellcode

1
2
3
4
5
6
sudo blkid
/dev/sda1: UUID="1ed23026-8a84-42bf-a067-00260add671d" TYPE="ext3" LABEL="Disk3" SEC_TYPE="ext2"
/dev/sdb1: UUID="65bdd7a9-94b5-479d-a7c3-9d8d5712463d" TYPE="ext3"
/dev/sdb5: TYPE="swap" UUID="d359c557-5d8d-4704-b0d1-2cb4a2a6cc5a"
/dev/hdc1: LABEL="Disk1" UUID="0c379c9f-e734-4657-bd87-706d64af1ce4" SEC_TYPE="ext2" TYPE="ext3"
/dev/hdc2: LABEL="Disk2" UUID="f56f4e81-d404-4223-a6fc-b74b67b4c180" SEC_TYPE="ext2" TYPE="ext3"


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda1
UUID=65bdd7a9-94b5-479d-a7c3-9d8d5712463d /               ext3    relatime,errors=remount-ro 0       1
# /dev/sda5
UUID=d359c557-5d8d-4704-b0d1-2cb4a2a6cc5a none            swap    sw              0       0
/dev/hdd        /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
UUID=0c379c9f-e734-4657-bd87-706d64af1ce4 /mnt/Disk1  ext3 auto,defaults 0 0
#/dev/hdc1    /mnt/Disk1 ext3 defaults 0 0
UUID=f56f4e81-d404-4223-a6fc-b74b67b4c180 /mnt/Disk2  ext3 auto,defaults 0 0
#/dev/hdc2    /mnt/Disk2 ext3 defaults 0 0
UUID=1ed23026-8a84-42bf-a067-00260add671d /mnt/Disk3  ext3 auto,defaults 0 0
#/dev/hdb1    /mnt/Disk3 ext3 defaults 0 0


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
root@lexd1:~# smbtree
Password:
XXXXXXNETZ
        \\LEXD1-BASIS
                \\LEXD1-BASIS\C$                Standardfreigabe
                \\LEXD1-BASIS\H$                Standardfreigabe
                \\LEXD1-BASIS\ADMIN$            Remoteadmin
                \\LEXD1-BASIS\F
                \\LEXD1-BASIS\G
                \\LEXD1-BASIS\F$                Standardfreigabe
                \\LEXD1-BASIS\G$                Standardfreigabe
                \\LEXD1-BASIS\SharedDocs
                \\LEXD1-BASIS\D$                Standardfreigabe
                \\LEXD1-BASIS\IPC$              Remote-IPC
                \\LEXD1-BASIS\E$                Standardfreigabe
        \\LEXD1                         lexd1 server (Samba, Ubuntu)
failed tcon_X with NT_STATUS_ACCESS_DENIED

Hat einer eine Idee?