Fedora Linux Support Community & Resources Center
  #1  
Old 17th February 2012, 07:34 PM
kalpet89 Offline
Registered User
 
Join Date: Sep 2010
Location: Somewhere in the United Kingdom
Posts: 13
windows_7firefox
Help with Samba

Hi all,

Straight to the problem,
I have one laptop with Windows 7 Pro 64bit
and a netbook with Fedora 16 32bit

I wanted to share some folders from Windows in Linux, so after some google search i found out about Samba.

I installed Samba, I configured the exceptions in the Firewall and after some more configurations I managed to see my Windows PC in the network folder in Linux.

But everytime Im trying to open the folder it says:
"The folder contents could not be displayed. You do not have the permissions necessary to view the contents of "myshare on yourPC"."

I tried everything and still the same.
Any solutions? What am I doing wrong here?

Thanks
Reply With Quote
  #2  
Old 17th February 2012, 08:01 PM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,765
windows_xp_2003firefox
Re: Help with Samba

Open a terminal and type the following:
PHP Code:
su
setenforce 0 
Then try accessing the folder again. Does the error go away? If it does, it's an SeLinux issue. In the terminal type:
PHP Code:
setenforce 1 
to return SeLinux back the way it was.

Type
PHP Code:
getsebool -grep samba 
Is there a line that reads
Code:
samba_share_nfs --> off
If so type
PHP Code:
setsebool samba_share_fusefs on 
Type the getsebool command again.
PHP Code:
getsebool -grep samba 
You should now see
Code:
samba_share_fusefs on
Now try accessing the folder. There should be no issues.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 17th February 2012, 08:49 PM
kalpet89 Offline
Registered User
 
Join Date: Sep 2010
Location: Somewhere in the United Kingdom
Posts: 13
windows_7firefox
Re: Help with Samba

The following works.
PHP Code:
su 
setenforce 0 
I don't get any permission messages now.
But the folder is empty, why is that?
Reply With Quote
  #4  
Old 17th February 2012, 09:10 PM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,765
windows_xp_2003chrome
Re: Help with Samba

What are the contents of the folder when viewed using Windows?
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #5  
Old 17th February 2012, 09:16 PM
kalpet89 Offline
Registered User
 
Join Date: Sep 2010
Location: Somewhere in the United Kingdom
Posts: 13
windows_7firefox
Re: Help with Samba

Downloads, Documents, Pictures etc.

But Im not quite sure if this is the right folder as this is the first time Im trying to share folders between 2 computers. I dont know if Im doing something wrong.

From where do you check this folder?
Reply With Quote
  #6  
Old 18th February 2012, 12:24 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,765
linuxfirefox
Re: Help with Samba

Check it from the Windows machine and see what's in it. It needs to be shared from the Windows box also so that it will be visible to other networked machines.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #7  
Old 18th February 2012, 01:23 AM
kalpet89 Offline
Registered User
 
Join Date: Sep 2010
Location: Somewhere in the United Kingdom
Posts: 13
windows_7firefox
Re: Help with Samba

After 3 hours struggling to find a solution, nothing works. I tried everything and I still cannot get it to work.

This is what I do:

1.
PHP Code:
su 
2.
PHP Code:
yum install samba 
3.
PHP Code:
cd 
4.
PHP Code:
mkdir sharefolder 
5.
PHP Code:
chown username:username sharefolder 
6.
PHP Code:
smbpasswd -a username 
7.
PHP Code:
vim /etc/samba/smb.conf 
8.
PHP Code:
//I write the following in the end of the .conf file:
[sharefolder]
path = /sharefolder
available 
yes
valid users 
username
read only 
no
browsable 
yes
public = yes
writable 
yes 
9.
PHP Code:
//this command doesn't work
/etc/init.d/samba restart 
10.
PHP Code:
ifconfig 
11.
HTML Code:
Firewall Settings
1.enabling "samba and samba client" in Trusted Services
2.enabling "echo reply and echo request" in ICMP Filter
Then I open the Network Folder in Linux and I can see my Windows PC there,
but there is nothing inside that folder.

Last edited by kalpet89; 18th February 2012 at 01:26 AM.
Reply With Quote
  #8  
Old 18th February 2012, 07:20 AM
Antrikssh Offline
Registered User
 
Join Date: Oct 2011
Posts: 29
linuxfirefox
Re: Help with Samba

Hi kalpet89,

I want to know your linux shared folder/file is accessable in windows system. If yes then try to share other folder from your window system and see this folder content is accessible form the linux system. I have used fedora 15 I also got such type of problem but when I try this it's work.

Regards,
Antrikssh
Reply With Quote
  #9  
Old 18th February 2012, 06:27 PM
kalpet89 Offline
Registered User
 
Join Date: Sep 2010
Location: Somewhere in the United Kingdom
Posts: 13
windows_7firefox
Re: Help with Samba

My Linux shared folder isn't accessible in Windows. I don't even see my Fedora system in Windows. I only see my Windows system in Fedora.
Reply With Quote
  #10  
Old 18th February 2012, 06:44 PM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,765
linuxfirefox
Re: Help with Samba

To enable and start the services you need to use the systemctl command.

PHP Code:
systemctl enable smb.service
systemctl start smb
.service
systemctl enable nmb
.service
systemctl start nmb
.service 
When those services are already running you can restart them with
PHP Code:
systemctl restart smb.service
systemctl restart nmb
.service 

Dang! Cinnamon, or something graphics related crashed hard while I was adding to this post and I lost a lot that I had added. I was forced to reset the computer.

Just the same, make your smb.conf and simple as possible. It doesn't need to be too complex. If you edit that file run testparm to make sure there are no typos. Restart smb and nmb any time you make changes to smb.conf. You will likely need to wait a minute or three for things to get settled afterwards.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #11  
Old 21st February 2012, 05:15 AM
Antrikssh Offline
Registered User
 
Join Date: Oct 2011
Posts: 29
linuxfirefox
Thumbs up Re: Help with Samba

Hi kalpet89,

Just try the step describe by the Mr. Glennzo because if your smb.conf file is configure correctly then that step will works and you see your folder in the windows system. But if your smb.conf file is not configure correct you still have same problem. Just check your smb.conf file, Is it configure in this way that I mention below :-

[global]
workgroup = Name of your windows work group
server string = Give some string that represent your linux folder in windows
log file = /var/log/samba/log.%m (according to your system, present in smb.conf so dont change)
max log size = 50
cups options = raw


[printers]
comment = All Printers
path = /var/spool/samba (according to your system, present in smb.conf so dont change)
printable = Yes
browseable = No

[sharing]
path =path/ofthe/shared folder
read only = No
guest ok = Yes

or you can easily configure you smb.conf file through gui present in each linux system if you installed samba. If it not then.

[root ] rmp -qa | grep system-config-samba
or
[root] rmp -qa | grep samba

if it is not then install it like

[root] yum install system-config-samba

after that you search it in Application and configure your shared folder but for it you have to Administrative power.


Good Luck..........

Regards,
Antrikssh

Last edited by Antrikssh; 21st February 2012 at 05:19 AM.
Reply With Quote
  #12  
Old 21st February 2012, 09:06 AM
Chilly Willy Offline
Registered User
 
Join Date: Jul 2008
Posts: 1,258
linuxfirefox
Re: Help with Samba

Let me see if I got this straight... you have folders on WINDOWS (M$) that you want to share TO LINUX?

If that is correct, then why are you making your shares on LINUX? I suspect THAT is what you are seeing & thus why there is nothing in it.
If I am correct, & your shares ARE on M$, then you need to set THOSE up as shares, with share permissions on M$, & set you SAMBA up to VIEW them.

If I got this wrong, & this is NOT your intention, sorry....
__________________
Chilly Willy, Tux's little cousin...

By its very nature, Windows is a PANE!
Reply With Quote
Reply

Tags
fedora, linux, problem, samba, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba shares available only after OKing them in Samba server config tool gizenshu Servers & Networking 1 1st October 2010 06:08 PM
Having to enter Samba password manually in Samba config screen after every reboot! Syncro Servers & Networking 3 17th July 2008 12:03 AM
Samba 2.2.x serving Samba client 3.0.26 cifs (mount error 13 = Permission denied) nnn Servers & Networking 10 5th April 2008 09:40 AM


Current GMT-time: 22:19 (Wednesday, 22-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Le Gosier Photos on Instagram - North Glendale - Kivsharivka Travel Photos on Instagram