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 02-26-2011, 05:08 PM   #1
faint545
LQ Newbie
 
Registered: Nov 2010
Posts: 14

Rep: Reputation: 0
SAMBA On CentOS


Hello. I have CentOS installed on my computer using VirtualBox so I can get a feel for CentOS before I actually use it on an actual server I have at home.

CentOS (Guest OS)
Windows 7 (Host OS)

First thing I did was install Samba, added a user, allow Samba through the firewall and, added 1 share definition. I tried to view the shared folder from CentOS and an error popped up, saying "The folder contents could not be displayed".

So I tried viewing it on the host OS and it doesn't work either.

Here is my share definition:
Code:
[alex]
	comment = Alex's share
	path = /home/alex
	writeable = yes
;	browseable = yes
	valid users = alex
User "alex" is defined and has been added to Samba. I can't seem to figure out why I can't view the shared folder from within the OS itself. Help anyone?

*Side Note(s):
- I have CentOS set to use bridged network so there's no issue with IP addresses.
- I uncommented the "browseable" line and still didn't work.

Last edited by faint545; 02-26-2011 at 05:13 PM.
 
Old 02-26-2011, 06:06 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Did you add your users in samba using the following:

Code:
smbpasswd -a "username"
Keep in mind that the username has to already exist on the linux box.

Regards,

Fordeck
 
Old 02-26-2011, 06:09 PM   #3
faint545
LQ Newbie
 
Registered: Nov 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Yes I did.
 
Old 02-27-2011, 05:37 PM   #4
faint545
LQ Newbie
 
Registered: Nov 2010
Posts: 14

Original Poster
Rep: Reputation: 0
I was messing around with it today and noticed one strange thing...

If I setup Samba to share a regular folder, no problems. But as soon as I mount a VirtualBox Shared Folder onto CentOS and try to share that folder via Samba, then it no longer becomes visible/accessible which is why I was getting that error.. What does this mean?
 
  


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
CentOS in one VirtualBox, Windows in another - can I set up Samba in the CentOS VB? ismism Linux - Newbie 10 08-08-2010 03:34 PM
[SOLVED] Samba on CentOs peeths003 Linux - Networking 6 12-23-2009 12:44 PM
samba on centos 5 alitoday Linux - Server 1 07-14-2009 03:56 PM
Samba "system-config-samba" not displaying users in Gnome GUI - CentOS 5.0 bskrakes Linux - Server 6 03-01-2009 11:59 AM
samba , xp and centos 5 cyberiapost Linux - Newbie 7 11-30-2008 01:56 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