Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th March 2008, 10:48
zaxo zaxo is offline
Junior Member
 
Join Date: Mar 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Simple Home File Server (Based On Ubuntu)

Hello all

First i would like to say great work to all the ones that have made tutorials, they have given me a good start intro to Linux.

Im totally new to all this linux mumble. But hope you understand me question

but this one i just cant seem to get working http://howtoforge.com/ubuntu-home-fileserver

I have made a VMware setup for this one.

I have followed the guide, but something is wrong, IE i cant get access to the share from windows or ubuntu 7.10 Desktop live cd version.

Wen i try to Explore the share i get this error in windows xp sp2

Im getting the pop up for username and password, i have tried to unix accounts but with no luck. But if i understand it correct i should not be asked here ?

But in the end windows turn up this error

\\server is not accessible. You might not have permission to this network resource.. etc etc. The group name could not be found

Here are some files that you probely is going to need the information about

/etc/hosts
Quote:
127.0.0.1 localhost.localdomain localhost
10.0.0.3 zaxoserver01.zaxonet.dk zaxoserver01

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
some fdisk info: fdisk -l
Quote:
Disk /dev/sda: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c31ef

Device Boot Start End Blocks Id System
/dev/sda1 * 1 492 3951958+ 83 Linux
/dev/sda2 493 522 240975 5 Extended
/dev/sda5 493 522 240943+ 82 Linux swap / Solaris

Disk /dev/sdb: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004b502

Device Boot Start End Blocks Id System
/dev/sdb1 1 522 4192933+ 7 HPFS/NTFS
The sdb1 is made into NTFS with Gparted

/etc/fstab
Quote:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=7534f28c-6fd4-4d9b-818f-9dee1e88d69b / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=ebfde0e7-4862-4c8d-8a16-db744190e0bc none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
/dev/sdb1 /media/store ntfs defaults 0 0
/etc/samba/smb.conf

Quote:
the only thing i have changed here are

workgroup = WORKGROUP

and at the end added this

[ Public Folder ]
comment = Public Folder
path = /media/store
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = no group
I have made one user

adduser share

and smbpasswd -a share

The server has been restarted and samba is running:

If i boot the server with the ubuntu live cd 7.10 i can access the ntfs partition and create files / folders there.

I have searched all kind of guides, sites etc. etc. But i just cant find the answer any ware. Im pretty sure its some little thing.

if you need more info just name the place and i list it here

Yours Zaxo
Reply With Quote
Sponsored Links
  #2  
Old 26th March 2008, 18:57
o.meyer o.meyer is offline
Senior Member
 
Join Date: Aug 2007
Posts: 167
Thanks: 2
Thanked 24 Times in 23 Posts
Default

Hi zaxo,

add

Code:
guest ok = yes
to the smb.conf . There's also a typo in your configuration - change

Code:
force group = no group
to

Code:
force group = nogroup
Afterwards restart SAMBA - hope this works for you. Btw: Sometimes, when a smb-user has been added via smbpasswd -a %username% the account won't be enabled - you can do it manually via smbpasswd -e %username%.

Best regards,

Olli

Last edited by o.meyer; 26th March 2008 at 19:00.
Reply With Quote
The Following User Says Thank You to o.meyer For This Useful Post:
zaxo (26th March 2008)
  #3  
Old 26th March 2008, 20:04
zaxo zaxo is offline
Junior Member
 
Join Date: Mar 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by o.meyer
Hi zaxo,

add

Code:
guest ok = yes
to the smb.conf . There's also a typo in your configuration - change

Code:
force group = no group
to

Code:
force group = nogroup
Afterwards restart SAMBA - hope this works for you. Btw: Sometimes, when a smb-user has been added via smbpasswd -a %username% the account won't be enabled - you can do it manually via smbpasswd -e %username%.

Best regards,

Olli
Thz alot olli, it worked.

I knew i was something small.
Reply With Quote
  #4  
Old 24th July 2008, 22:58
zeezam zeezam is offline
Junior Member
 
Join Date: Jul 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Permission problems

I have excactly the same problem.
It didn't solved it with changing smb.conf as zaxo did :'(

My problem start appear directly when I try connecting to my server with user and password box. After I created a user called 'home' I succed to login and see the share but I can't acces the share.

Here is my setup

/etc/hosts
HTML Code:
127.0.0.1       localhost
192.168.0.5 nas

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
some fdisk info: fdisk -l
HTML Code:
Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x56feed17

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1314    10554673+  83  Linux
/dev/sda2           18699       18959     2096482+  82  Linux swap / Solaris
/dev/sda3            1315       18698   139636980    7  HPFS/NTFS
/etc/fstab
HTML Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda1
UUID=01a300d6-5fb4-4317-bd21-2ee487696d75 /               ext3    defaults,erro$
# /dev/sda3
UUID=40A7110C2E8F18E1 /media/sda3     ntfs    defaults,umask=007,gid=46 0      $
# /dev/sda2
UUID=9ab70b63-4b4c-4657-aede-acf9d1c0f7b8 none            swap    sw           $
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec 0       0
/dev/sda3       /media/store  ntfs defaults 0 0
/etc/samba/smb.conf
HTML Code:
[media]
comment = Public folder
path = /media/store
public = yes
writeable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
guest ok = yes




The last picture is the permission failed message. It's on Swedish so it's pretty useless here maybe



Any tips for me to get it work? Really appreciate answers.

Cheers

zeezam
Reply With Quote
  #5  
Old 25th July 2008, 13:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

What's the output of
Code:
ls -la /media/store
? Any errors in your logs?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 26th July 2008, 09:32
zeezam zeezam is offline
Junior Member
 
Join Date: Jul 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
What's the output of
Code:
ls -la /media/store
? Any errors in your logs?
Here is the output.
Code:
administrator@nas:~$ ls -la /media/store
total 8
drwxrwx--- 1 root plugdev 4096 2008-07-24 03:21 .
drwxr-xr-x 5 root root    4096 2008-07-24 11:23 ..
administrator@nas:~$
Which logs? I'm pretty new with Linux so I don't now where to to look.
Reply With Quote
  #7  
Old 27th July 2008, 18:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

The logs are in the /var/log directory.

Please try this:
Code:
chmod 775 /media/store
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 27th July 2008, 19:34
zeezam zeezam is offline
Junior Member
 
Join Date: Jul 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
The logs are in the /var/log directory.

Please try this:
Code:
chmod 775 /media/store
I did
Code:
root@nas:/home/administrator# chmod 755 /media/store
root@nas:/home/administrator# ls -la /media/store
total 8
drwxrwx--- 1 root plugdev 4096 2008-07-26 03:27 .
drwxr-xr-x 5 root root    4096 2008-07-24 11:23 ..
drwxrwx--- 1 root plugdev    0 2008-07-26 03:27 test
Still got the login screen when I try connect to the server from a XP machine.
I read somewhere that you need to mount the ntfs partition as r&w. Maybe that's the problem? I did make a NTFS partition on the same disk (/media/store) as Ubuntu server and mounted with ntfs-3g.

Maybe I must put some permission in the fstab?
/dev/sda3 /media/store ntfs-3g defaults 0 0

Here is the log (the XP machine trying to connect to Ubuntu server)
Code:
[2008/07/24 14:43:52, 0] smbd/service.c:make_connection(1191)
  amd64 (192.168.0.2) couldn't find service hda public hard dis
[2008/07/24 14:43:52, 0] smbd/service.c:make_connection(1191)
  amd64 (192.168.0.2) couldn't find service hda public hard dis
[2008/07/24 14:43:52, 0] smbd/service.c:make_connection(1191)
  amd64 (192.168.0.2) couldn't find service hda public hard dis
[2008/07/24 14:43:52, 0] smbd/service.c:make_connection(1191)
  amd64 (192.168.0.2) couldn't find service hda public hard dis
[2008/07/24 14:46:53, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2008/07/24 14:46:53, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2008/07/24 14:59:53, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2008/07/24 14:59:53, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file /etc/printcap for read!
[2008/07/24 15:04:36, 0] smbd/service.c:make_connection(1191)
  amd64 (192.168.0.2) couldn't find service hda public hard dis
[2008/07/24 15:04:36, 0] smbd/service.c:make_connection(1191)

Thanks!
Reply With Quote
  #9  
Old 6th September 2008, 05:26
djb132 djb132 is offline
Junior Member
 
Join Date: Sep 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I too was pulling my hair out trying to access my drives from XP.

What solved the problem for me was changing from
path = /media/store
to
path = media/store (this is the way the tutorial actually says to do it)

and changing
force group = no group
to
force group = nogroup

Suddenly, everything works!
Reply With Quote
  #10  
Old 21st September 2008, 01:11
mloberg mloberg is offline
Junior Member
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Works with XP, not with Linux

I see there is a lot of people who are having a hard time connecting to their server with XP, but I'm having problems connecting to it with my Linux machine. Can any help me?
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
debian etch courier pop3 issue docean Installation/Configuration 6 20th March 2008 16:38
Dspam planet_fox General 6 20th January 2007 19:42
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 06:19
Debian install error jf1976 Installation/Configuration 25 19th January 2006 23:31
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30


All times are GMT +2. The time now is 08:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.