LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-07-2008, 08:40 AM   #16
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15

marozsas first of all 10xx alot for your help my name is tzahi my server name is elena im new with linux

so please ....

[root@Elena /]# smbclient //192.168.2.20/FileSever samba-temp-temp -W WORKGROUP -u samba
Server not using user level security and no password supplied.
read_socket_with_timeout: timeout read. read error = Connection reset by peer.
Receiving SMB: Server stopped responding
tree connect failed: Read error: Connection reset by peer

did you saw my earley threat about the smbstatus?
 
Old 07-09-2008, 03:47 PM   #17
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Hi Tzahi !

(and sorry for my mistake about your name - I thought your nick name was a short for Elena Negro - sorry again)

Yes, I saw your post about the smbstatus. The problem is in the same post you put the section about the share without any explict write permission, so it means nothing. This is why I asked you to put a explicit write permission on the share.

I'm confused... - again
In your last post, in your command smbclient, the string "samba-temp-temp" is the password assigned to the user "samba" with the command "smbpasswd samba" ? It must be !
I mean, if the password assigned to the user "samba" is "xxx", then the command must be:
Code:
smbclient //192.168.2.20/FileServer xxx  -W WORKGROUP -u samba
you got it ?

sorry by the delay to answer. It is a holiday here where I live.

PS: Pay attention ! You wrote "FileSever" in smbclient command above. It is missing a "r" in the word "server"....I hope it is just a typo.

Last edited by marozsas; 07-09-2008 at 03:50 PM.
 
Old 07-14-2008, 02:33 AM   #18
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15
hi first of all 10xxx again and happy holiday where r u from ???

my samba project is going ok i have 1 problem i have 2 shares in my smb.conf and only one is working

smb.conf :
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
hosts allow = 192.168.2. 127.0.0.1
security = user
#passdb backend = tdbsam
load printers = no
cups options = raw
debug level = 2
smb passwd file = /etc/samba/smbpasswd
encrypt passwords = yes
log file = /var/log/samba/log.%m
log level = 2

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


[FileServer]

comment = FileServer
writable = yes
public = yes
path =/mnt/server/

[tzahia]

comment = tzahia
writable = yes
public = yes
path =/Files

the fileserver is working good /mnt/server

the second dosent work /files

i got this error message whan im try to connect :

[2008/07/14 10:00:30, 0] smbd/service.c:make_connection_snum(1003)
'/Files' does not exist or permission denied when connecting to [tzahia] Error was Permission denied


the /files is a folder that mount to a secondary hd of 140gb :

[root@Elena ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/Vol0-LogVol00
ext3 35G 25G 8.7G 74% /
/dev/hda1 ext3 99M 11M 84M 12% /boot
tmpfs tmpfs 379M 0 379M 0% /dev/shm
/dev/hdb1 ext3 147G 188M 140G 1% /Files

and is chmod is 777 :
drwxrwxrwx 3 root root 4096 Jul 12 18:11 Files


and if im try to mount cifs its the same error :

[root@Elena ~]# mount -t cifs //localhost/Files /tmp/ -o username=tzahia,password=tzahia
retrying with upper case share name
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)


any idea ???

10xx again
 
Old 07-14-2008, 03:11 AM   #19
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15
i think that the problem is with the mount :

/dev/hdb1 on /Files type ext3 (rw)

because if i change the smb.conf to a new folder in /mnt/newfolder its worknig

but if i leave it to /Files its dosent working ???

to remaind you that the share /Files is allocate to /dev/hdb1 /Files do i need to do a special mount ???

i did ---> mount /dev/hdb1 /Files

and i gave a 777 full perrmison to /FIles i created the folder using : mkdir -m 777 /Files
any one????
 
Old 07-14-2008, 06:21 AM   #20
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Hi Tzahi,

The owner/modes of a mount point are hidden when the device is mounted. You need to change owner/modes AFTER mouting the device.
My advice is not to change the owner/modes of the root of your share, this could have security implications;
Instead, create an another mount point (let say, /data), mount /dev/hdb1 on /data (mount /dev/hdb1 /data), and create the share Files on /data (mkdir /data/Files).
Change the owner/modes of /data/Files (not of /data) and smb.conf according. Restart smbd.
 
Old 07-14-2008, 06:45 AM   #21
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15
do you meen

mkdir /data

mount /dev/hdb1 /data

mkdir -m 777 /data/share

and to change it in the smb.conf???

or than chwon ?
 
Old 07-15-2008, 06:48 AM   #22
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
You already set the modes when you create the directory. After that you can use "chmod" to change the modes of a file/folder.

In the smb.conf, just adjust the path to the neew /data/share you created:
Code:
[tzahia]
comment = tzahia
writable = yes
public = yes
path =/data/share
 
Old 07-16-2008, 02:36 AM   #23
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15
hi my man after two different try's its finely work 10xxxx

but it seems that i have another problem in the middle of copy progress to the share i got smbd kernel panic

how can i debug it to see what seems to be the problem 10xxx again
 
Old 07-16-2008, 02:37 AM   #24
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15
Jul 15 18:04:38 Elena xinetd[1875]: EXIT: telnet status=1 pid=12277 duration=1(sec)
Jul 15 18:15:34 Elena smbd[12207]: [2008/07/15 18:15:34, 0] lib/fault.c:fault_report(41)
Jul 15 18:15:34 Elena smbd[12207]: ===============================================================
Jul 15 18:15:34 Elena smbd[12207]: [2008/07/15 18:15:34, 0] lib/fault.c:fault_report(42)
Jul 15 18:15:34 Elena smbd[12207]: INTERNAL ERROR: Signal 11 in pid 12207 (3.0.28-1.el5_2.1)
Jul 15 18:15:34 Elena smbd[12207]: Please read the Trouble-Shooting section of the Samba3-HOWTO
Jul 15 18:15:34 Elena smbd[12207]: [2008/07/15 18:15:34, 0] lib/fault.c:fault_report(44)
Jul 15 18:15:34 Elena smbd[12207]:
Jul 15 18:15:34 Elena smbd[12207]: From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
Jul 15 18:15:34 Elena smbd[12207]: [2008/07/15 18:15:34, 0] lib/fault.c:fault_report(45)
Jul 15 18:15:34 Elena smbd[12207]: ===============================================================
Jul 15 18:15:34 Elena smbd[12207]: [2008/07/15 18:15:34, 0] lib/util.c:smb_panic(1655)
Jul 15 18:15:34 Elena smbd[12207]: PANIC (pid 12207): internal error
Jul 15 18:15:35 Elena smbd[12207]: [2008/07/15 18:15:35, 0] lib/util.c:log_stack_trace(1759)
Jul 15 18:15:35 Elena smbd[12207]: BACKTRACE: 10 stack frames:
Jul 15 18:15:35 Elena smbd[12207]: #0 smbd(log_stack_trace+0x2d) [0x7cfedd]
Jul 15 18:15:35 Elena smbd[12207]: #1 smbd(smb_panic+0x5d) [0x7d000d]
Jul 15 18:15:35 Elena smbd[12207]: #2 smbd [0x7bab9a]
Jul 15 18:15:35 Elena smbd[12207]: #3 [0x110420]
Jul 15 18:15:35 Elena smbd[12207]: #4 /lib/libc.so.6(__select+0x2c) [0x38eb8c]
Jul 15 18:15:35 Elena smbd[12207]: #5 smbd(sys_select+0xd6) [0x7d8e96]
Jul 15 18:15:35 Elena smbd[12207]: #6 smbd(smbd_process+0x3e0) [0x6519d0]
Jul 15 18:15:35 Elena smbd[12207]: #7 smbd(main+0xbdd) [0x8ad3ad]
Jul 15 18:15:35 Elena smbd[12207]: #8 /lib/libc.so.6(__libc_start_main+0xdc) [0x2dadec]
Jul 15 18:15:35 Elena smbd[12207]: #9 smbd [0x5d53a1]
Jul 15 18:15:36 Elena smbd[12207]: [2008/07/15 18:15:36, 0] lib/fault.c:dump_core(181)
Jul 15 18:15:36 Elena smbd[12207]: dumping core in /var/log/samba/cores/smbd
Jul 15 18:15:36 Elena smbd[12207]:
Jul 15 18:17:40 Elena smbd[12302]: [2008/07/15 18:17:40, 0] smbd/nttrans.c:call_nt_transact_ioctl(2463)
Jul 15 18:17:40 Elena smbd[12302]: call_nt_transact_ioctl(0x9005c): Currently not implemented.
Jul 15 20:28:55 Elena syslogd 1.4.1: restart.




and the core dump folder is empty
 
Old 07-16-2008, 06:22 AM   #25
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
good morning Tzahi !

Looks like you are running samba 3.0.28-1.el5_2.1 which is outdated. The current version is 3.2.0.
Try to update your system, both samba anda kernel.

cheers,
 
Old 07-16-2008, 06:34 AM   #26
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15
how do i do it yum install or update please advise
 
Old 07-16-2008, 07:18 AM   #27
Elnegro8
Member
 
Registered: Jul 2006
Posts: 70

Original Poster
Rep: Reputation: 15
yum update???
 
Old 07-16-2008, 08:06 AM   #28
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What is the name of your regular user? Is it samba or sambauser? That sounds more like a system user or group. I'm trying to understand the name collision error message from your earlier post.

The directory you want to globally share probably should have root:root ownership with permissions created with "chmod a=rwxt /data/share".

If the user is a user on both XP and Linux, then use "smbpasswd" to add the username and password for the samba user. Users who aren't Linux users and in the smbpasswd username/password file should be mapped to the windows Guest user. For that you want "map to guest = Bad User" in the global options. This will use the equivalent linux user "nobody" to access the directory on Linux. "nobody" is Linux's equivalent of windows "guest" user.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to copy or create files on samba Thaidog Linux - General 1 01-21-2007 11:54 PM
copy files form windows app to samba share procfs General 1 07-19-2006 06:13 AM
Cannot create files on samba share jhoderd Linux - Software 2 01-04-2005 08:46 AM
can't create/modify files in a samba share deadslota Linux - Newbie 4 08-07-2004 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration