Shared folders in Ubuntu

Soldato
Joined
14 Jul 2005
Posts
17,616
Location
Bristol
I'm trying to set up shared folders in Ubuntu, so I can chuck stuff from my main PC onto my media machine without writing a disc etc.

I have one drive soley for Windows access (40GB hdd), that is shared, and so is another folder on the main ext3 system drives.

My Windows PC can pick up my media machine as being on the network, but when I tell it to access it, I get asked for a log in. Trying my normal login for the media one does nothing, and I created a 'guest' account, which again, doesn't log in.

It is setup as SMB sharing, and the folders are shared.

Any help is greatly appreciated.

InvG
 
Post a copy of your smb.conf? :)

My what? :P

I'm fairly new to Linux (dabbled a bit, and want to get properly into it now)...hence media box being on Linux (plus it's a slow machine, and linux is best for it really).


-=EDIT=-

Found it...I take if you only want the shared info, not the whole document...

smb.conf said:
[Yoshi]
path = /windows
available = yes
browsable = yes
public = yes
writable = yes

[Shared Stuff]
path = /home/rob/Shared Stuff
available = yes
browsable = yes
public = yes
writable = no

Is what it says for the files, if you want more info, I can pull the contents of the whole file.


InvG
 
Last edited:
If your Windows username is different to your Linux username, you will need to create a new user on your Linux system:

Code:
sudo adduser windows_username

Give the account a password when asked and just press Enter on any of the questions that come up afterwards.

Now:
Code:
sudo smbpasswd -a windows_username

Enter a password when asked for SMBPASSWORD.

[You might be asked simply for "password" this is your Linux password].

This should create an entry in Samba for that account.
 
Code:
rob@Yoshi:~$ sudo adduser windows_Rob
adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX configuration variable.  Use the `--force-badname'
option to relax this check or reconfigure NAME_REGEX.
rob@Yoshi:~$ 

rob@Yoshi:~$ sudo adduser windows_Rob
adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX configuration variable.  Use the `--force-badname'
option to relax this check or reconfigure NAME_REGEX.
rob@Yoshi:~$

I'm not sure if I entered it right, but I did try the couple of ways...and that's what happend.

My Ubuntu login is 'rob' and my Windows one is 'Rob', will tis cause issues?

:confused:

InvG
 
woops.. you took the "windows_username" a bit too literally...

sudo adduser Rob

However, since your Windows username is [almost] the same, you can skip the adduser bit and try the second part.

My Windows username is the same as my Linux but with an Uppercase first letter and I had no problems.
 
The second part of that code should have been 'sudo adduser Rob' and not 'windows etc.' I tried a few combinations and it didn't like me :p

Well my first attempt at the 2nd line of code came out with was unrecognised command...didn't help that I didn't read the code properly...passwd not password. :D

Sorted it now though.

Thanks

InvG
 
Back
Top Bottom