PDA

View Full Version : Ubuntu Help



wainuitech
05-07-2009, 05:49 PM
Bloody Ubuntu -- no wonder some people get :waughh::waughh:

Heres the Problem, I added a second drive to the Ubuntu Server ( its actually Ubuntu 9.04 - acting as a server) I'm mucking about with as the original drive is close to full. Sharing folders over the LAN was easy on the original drive:

Been reading a LOT of ubuntu forums, doing what was suggested and nothing works -- The second drive is formatted in NTFS, and can be seen fine in Ubuntu, BUT as soon as I tried to create a shared folder on the second drive, it creates the folder fine, but wont share.

I read you need to install NTFS config Tool (http://www.imagef1.net.nz/files/NTFS.jpg) but It wont allow to share the local drive.

Sharing the folder the same way as on the main drive it goes through the Motions (http://www.imagef1.net.nz/files/Sharing.jpg)But when clicking "Create Share ,I get This warning / Error (http://www.imagef1.net.nz/files/Ubuntu1246769216.jpg) -- No problems I thought, open the smb.config file - added in the line as suggested - saved, rebooted and still wont share - same error message :angry

What am I doing wrong ?????

Give me windows anytime ;)

Edited: originally the drive was formatted in FAT32 - saw and made shares, but nothing would open them, even another Ubuntu PC.

Blam
05-07-2009, 06:12 PM
Did you add usershare owner only = False to the global section of the conf file?

If possible, could you place the config file here with CODE tags?

EDIT: BTW there is a very useful GUI tool for configuring samaba sharing in linux.

sudo apt-get install system-config-samba

wainuitech
05-07-2009, 06:35 PM
Yep, changed the config file - didn't make any difference, ( may have put it in wrong ???) looking at the other entries following how they were laid out,went to the end of the global section, left 1 line put in # usershare owner only = False Screen Shot of Entry (http://www.imagef1.net.nz/files/user1246772060.jpg) ( just went back and rechecked on the spelling - was / is all OK, as per instructions I found before.

and also have installed the samba config.

Its only the second drive thats causing problems, the main drive is fine - I think its because I dont have ownership of it.

hueybot3000
05-07-2009, 07:00 PM
You don't have ownership? I think SAMBA uses root user rights doesnt it?

wainuitech
05-07-2009, 07:47 PM
You don't have ownership? I think SAMBA uses root user rights doesnt it? yep - I think thats the problem - Taking Ownership - But every thing I have read, then tried, nothing works.

Its a simple setup - Installed Ubuntu 9.04, got Samba working then changed the workgroup - Made and shared files over the network and locally, can access them all, do what ever I want all work perfectly.
Even created a couple of new folders (Today) to make sure ( 1 Called Microsoft) and that shares.

Installed a second Drive, formatted as ntfs - after reading a bit, installed The NTFS config tool, then I get the error as posted above when trying to share them.

The folder here called Disk (http://www.imagef1.net.nz/files/Server.jpg) is from when it was formatted as FAT32 ( Which is on the second drive), it created, shared BUT "meant to be shared" but error's.

I can transfer files to the second drive locally from the same PC, but the folders simply wont share.

somebody
05-07-2009, 07:51 PM
Did you reboot samba after changing the config file?

"/etc/init.d/samba restart"

vinref
05-07-2009, 08:09 PM
That smb.conf you posted - it doesn't look like you removed the hash (#) from in front of the comment, and that you have used capitals for the first letters of the line.

You need to enter the line as is. Don't capitalise anything, don't add spaces, and remove the hash from in front of the line.

Edit: They seem to be using a semicolon in front of the lines as well...

vinref
05-07-2009, 08:34 PM
Hashes and semicolons before lines will mark them to be ignored. So remove either for the directive to take effect.

wainuitech
05-07-2009, 08:35 PM
That smb.conf you posted - it doesn't look like you removed the hash (#) from in front of the comment, and that you have used capitals for the first letters of the line.

You need to enter the line as is. Don't capitalise anything, don't add spaces, and remove the hash from in front of the line.

Edit: They seem to be using a semicolon in front of the lines as well...

YOU BUET :thumbs::clap:banana

That did it -- Thanks a million.

One thing I have noticed, even though the folder names are in Upper case, when sharing they all revert back to lower case. Example (http://www.imagef1.net.nz/files/Sharing1246779256.jpg) The bottom Pic is vista looking at the same folders in ubuntu, the ubuntu is running / Viewing over Remote desktop from Vista.

johnd
06-07-2009, 10:41 PM
YOU BUET :thumbs::clap:banana

That did it -- Thanks a million.

One thing I have noticed, even though the folder names are in Upper case, when sharing they all revert back to lower case.

... isn't that just because Linux is case sensitive and MS Windows is not?

Erayd
06-07-2009, 10:55 PM
... isn't that just because Linux is case sensitive and MS Windows is not?
The short answer is yes, but it's a lie. It explains things pretty well though.

The long answer is no, due to the way samba works internally.

Agent_24
07-07-2009, 02:09 AM
:lol: