Networking Forums

Networking Forums > Computer Networking > Linux Networking > Fedora5 samba

Reply
Thread Tools Display Modes

Fedora5 samba

 
 
ishi@softek.co.jp
Guest
Posts: n/a

 
      10-26-2006, 10:23 AM
Hi

I installed Fedora5 on my PC.
Then I updated samba by typing

# yum install samba

and then start samba by typing

# service smb start


I tried to login samba server from WindowsXP,
but, it failed.
The error message is as follows.


--------------------------------------------------------------
smbd/service.c:make_connection_snum(911)
'/home/admin' does not exist or permission denied when connecting
to [admin] Error was permission denied.
--------------------------------------------------------------
So, I change access permission like

# chmod 777 /home
# chmod 777 /home/admin

But, the result was same.

I tried many times and found that the result of "login"
was different by start up method of "smb".

[case1]-------------------------------------------------------
# cd /etc/init.d
# sh smb start
or
# /usr/sbin/smbd -D
# /usr/sbin/nmbd -D
--------------------------------------------------------------

[case 2]------------------------------------------------------
# cd /etc/init.d
# ./smb start
or
# service smb start
or
# chkconfig smb on
# reboot
--------------------------------------------------------------

In [case1], I could login to samba server from WindowsXP.
In [case2], I couldn't. And the error message was same(Permission
denied).

Please help me!
 
Reply With Quote
 
 
 
 
Alex
Guest
Posts: n/a

 
      10-26-2006, 04:06 PM
(E-Mail Removed) wrote:
> Hi
>
> I installed Fedora5 on my PC.
> Then I updated samba by typing
>
> # yum install samba
>
> and then start samba by typing
>
> # service smb start
>
>
> I tried to login samba server from WindowsXP,
> but, it failed.
> The error message is as follows.
>
>
> --------------------------------------------------------------
> smbd/service.c:make_connection_snum(911)
> '/home/admin' does not exist or permission denied when connecting
> to [admin] Error was permission denied.
> --------------------------------------------------------------
> So, I change access permission like
>
> # chmod 777 /home
> # chmod 777 /home/admin
>
> But, the result was same.
>
> I tried many times and found that the result of "login"
> was different by start up method of "smb".
>
> [case1]-------------------------------------------------------
> # cd /etc/init.d
> # sh smb start
> or
> # /usr/sbin/smbd -D
> # /usr/sbin/nmbd -D
> --------------------------------------------------------------
>
> [case 2]------------------------------------------------------
> # cd /etc/init.d
> # ./smb start
> or
> # service smb start
> or
> # chkconfig smb on
> # reboot
> --------------------------------------------------------------
>
> In [case1], I could login to samba server from WindowsXP.
> In [case2], I couldn't. And the error message was same(Permission
> denied).
>
> Please help me!

Did you create any samba user accounts? Use the command:
smbpasswd -a username

then you will be prompted to choose a password. If you choose a
username & password that matches one of your non-root linux accounts,
you should have access to that user's home directory via Samba. If you
want access to other directories, you will need to create Samba shares (
see the smb.conf man pages). You can also use Fedora's Samba GUI to
create the shares and users, but you'll be better off in the long run if
you familiarize yourself with the smb.conf file.
 
Reply With Quote
 
ishi@softek.co.jp
Guest
Posts: n/a

 
      10-27-2006, 01:30 AM
Hi

Yes, I already created a user "test" by "smbpasswd -a admin" command.

# cat /etc/samba/smbpasswd
admin:501:155EE......:[U ]:LCT-45415D06:
# grep admin /etc/passwd
admin:x:501:501::/home/admin:/bin/bash
# grep admin /etc/shadow
admin:$1$8f0OkjL......:13448:0:99999:7:::
# ls -ld /home/admin
drwxrwxrwx 2 admin admin 4096 Oct 27 10:12 /home/admin

Although, it is impossible to login as user "admin" to samba in [case
2].
And I already disabled iptables to ignore packet filtering problems.

Of course, I could login to samba server by using "ssh".

# ssh -l admin samba01
# admin@samba01's password:
# Last login: .....
samba01 $

And I could not understand why I could login to samba in [case 1]!

Thank you!

Alex wrote:
> Did you create any samba user accounts? Use the command:
> smbpasswd -a username
>
> then you will be prompted to choose a password. If you choose a
> username & password that matches one of your non-root linux accounts,
> you should have access to that user's home directory via Samba. If you
> want access to other directories, you will need to create Samba shares (
> see the smb.conf man pages). You can also use Fedora's Samba GUI to
> create the shares and users, but you'll be better off in the long run if
> you familiarize yourself with the smb.conf file.

 
Reply With Quote
 
ishi@softek.co.jp
Guest
Posts: n/a

 
      10-27-2006, 02:03 AM
Hi

More information in [case 2]

When I tried to login to samba server, the authentication was
successful,
and "admin" folder was appeared in WindowsXP.

Next, I double-clicked "admin" icon, then error dialog such as
permission denied
was displayed.

Thank you!
 
Reply With Quote
 
Paul Black
Guest
Posts: n/a

 
      10-27-2006, 05:18 AM
(E-Mail Removed) wrote:
> Hi
>
> More information in [case 2]
>
> When I tried to login to samba server, the authentication was
> successful,
> and "admin" folder was appeared in WindowsXP.
>
> Next, I double-clicked "admin" icon, then error dialog such as
> permission denied
> was displayed.


man samba_selinux


--
Paul
 
Reply With Quote
 
ishi@softek.co.jp
Guest
Posts: n/a

 
      10-27-2006, 09:01 AM
Dear Paul
Thanks a lot !!!

The problem was resolved.

# setsebool -P samba_enable_home_dirs 1

I'm very happy!


Paul Black wrote:
>
> (E-Mail Removed) wrote:
> > Hi
> >
> > More information in [case 2]
> >
> > When I tried to login to samba server, the authentication was
> > successful,
> > and "admin" folder was appeared in WindowsXP.
> >
> > Next, I double-clicked "admin" icon, then error dialog such as
> > permission denied
> > was displayed.

>
> man samba_selinux
>
> --
> Paul

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do all Linux distros have Samba built-in? Detect if Samba installed? Matthew Lincoln Linux Networking 8 11-17-2008 12:11 AM
Dancing the Samba with DD-WRT (Samba FS Automount) Louis Ohland Wireless Internet 2 12-01-2006 12:55 PM
A few questions regarding samba from a samba and windows rookie Madhusudan Singh Linux Networking 0 03-30-2005 05:54 PM
is samba the only way drdoubt Linux Networking 2 02-29-2004 10:29 PM
[Samba] WINS on Samba server and Routing jbob Linux Networking 0 08-13-2003 01:31 AM



1 2 3 4 5 6 7 8 9 10 11