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 10th October 2011, 02:23
mykel mykel is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Debian Squeeze Samba on NSLU2 SLUG External hard drive

To get SAMBA on my NSLU2, I followed the brilliant guide by Falko here:
http://www.howtoforge.com/debian-squ...tdbsam-backend

The results or remaining issues:

1. I can't get the user I added to login. It kept asking for user password.
2. I can login to the server using details of the account created during Debian install and that will take me to my home directory where I can read and write files. But I can access the external USB HD from where I hope to share files, since the Debian install is on a USB stick.

My SAMBA file points to the external HD as such: /media/usb0/shares/allusers
I have entered the UUID of the external HD into fstab and pointing it to mount at the foregoing path.
blkid lists the external hd
fdisk -l also does
It's formated ext3

So the remaining big issues: how can I get SAMBA to see my external hd and getting the user created to be able to login.

Below here, are output to different files, including SAMBA.CONF

smb.conf
[global]
server string = %h server
path = /media/usb0/shares/allusers
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword$
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
valid users = amer; lara
security = user
[homes]
comment = Home Directories
browseable = no
valid users = %S
writable = yes
create mask = 0700
directory mask = 0700
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[media/usb0]
comment = All Users
path = /media/usb0/shares/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writebale = yes

fstab: And there's an "fstab.old" in /etc that does not have the last hd, which is the external hd that mounts at:/media/usb0/shares/allusers
# /etc/fstab: static file system information. It simply has the first three lines.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
UUID=e84c39b2-601c-4811-bc8a-4c96ad39941f / ext3 errors=remount-ro 0 1
UUID=dfc227c8-dcc5-4e2f-b6e3-dcc8a2b7b116 /boot ext2 defaults 0 2
# /dev/sda5 none swap sw 0 0
UUID=36182a75-94f3-4604-a515-7c2841cb7b17 none swap sw 0 0
UUID=n2fcbff1-d98a-41a8-8e1c-2250bc6ce47e /media/usb0/shares/allusers ext3 0 0


blkid output:
/dev/sda1: UUID="dfc227c8-dcc5-4e2f-b6e3-dcc8a2b7b116" TYPE="ext2"
/dev/sda2: UUID="e84c39b2-601c-4811-bc8a-4c96ad39941f" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="36182a75-94f3-4604-a515-7c2841cb7b17"
/dev/sdb1: UUID="b2fcbff1-d98a-41a8-8e1c-2250bc6ce47e" TYPE="ext3"

pmount:
/dev/disk/by-uuid/e84c39b2-601c-4811-bc8a-4c96ad39941f on / type ext3 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sda1 on /boot type ext2 (rw,relatime,errors=continue)
/dev/sdb1 on /media/usb0 type ext3 (rw,sync,nodev,noexec,noatime,nodiratime,errors=co ntinue,data=ordered)

usbmount:
no changes made to file, default options.

Thanks in advance for your considered response.

Cheers

Last edited by mykel; 10th October 2011 at 02:36.
Reply With Quote
Sponsored Links
  #2  
Old 12th October 2011, 17:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Can you find any errors in your logs related to this?

How did you create the user that is not able to login? Did you compare his entry in /etc/passwd with one from a user that is working?
__________________
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
  #3  
Old 12th October 2011, 17:56
mykel mykel is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Can you find any errors in your logs related to this?

How did you create the user that is not able to login? Did you compare his entry in /etc/passwd with one from a user that is working?
Thanks a lot for your assistance.

I will check the logs as regards the external usb.

And as regards the user, I used #4 in your tutorial, "Adding And Managing Users". I used the entire content of that section. I was able to login to the system with the user created, but not to SAMBA.

Cheers
Reply With Quote
  #4  
Old 13th October 2011, 12:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You also used the smbpasswd command, right? Do you get any errors when you try to log into Samba?

What's the output of
Code:
ls -la /media/usb0/shares/
? Maybe it is just a permissions problem.
__________________
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
  #5  
Old 14th October 2011, 02:24
mykel mykel is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
You also used the smbpasswd command, right? Do you get any errors when you try to log into Samba?

What's the output of
Code:
ls -la /media/usb0/shares/
? Maybe it is just a permissions problem.
Yes, I used the smbpasswd command.

When I try to log into SAMBA, using credentials from the new user created, not the original system user created when I installed the OS, it kept asking me for the password.

Here's the output of
Code:
ls -la /media/usb0/shares/
drwxr-xr-x 3 root root 4096 Oct 6 02:14 .
drwxr-xr-x 4 root root 4096 Oct 6 02:14 ..
drwxrwxr-x 2 root users 4096 Oct 9 17:47 allusers

I know it's a permission issue. Since this post was created, I've installed Webmin (very slow on this system but it works) And with Webmin, I can now access the external USB hard drive, but I can't write to it, regardless of the changes I've made to Webmin to allow write access. Perhaps if I make the changes directly to smb.conf, I can write to the drive. Below is the new smb.conf file created by Webmin:

[global]
log file = /var/log/samba/log.%m
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword$
obey pam restrictions = Yes
passwd program = /usr/bin/passwd %u
dns proxy = No
server string = %h server
writeable = yes
path = /media/usb0/shares/allusers
unix password sync = Yes
valid users = amer,lara
syslog = 0
security = user
panic action = /usr/share/samba/panic-action %d
max log size = 1000
[homes]
create mask = 0700
directory mask = 0700
comment = Home Directories
writable = yes
valid users = %S


[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers



[250gb]
write list = amer,lara

Many thanks again, for your considered help.
Reply With Quote
  #6  
Old 14th October 2011, 16:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Have you tried to set permissions as shown in the tutorial?

Code:
mkdir -p /media/usb0/shares/allusers
chown -R root:users /media/usb0/shares/allusers/
chmod -R ug+rwx,o+rx-w /media/usb0/shares/allusers/
__________________
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
  #7  
Old 14th October 2011, 17:21
mykel mykel is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Have you tried to set permissions as shown in the tutorial?

Code:
mkdir -p /media/usb0/shares/allusers
chown -R root:users /media/usb0/shares/allusers/
chmod -R ug+rwx,o+rx-w /media/usb0/shares/allusers/
Falko,

Let me please thank you for your continued support on this. I followed the HowTo to the letter But I will go again and reissue these commands.

Thanks a lot again.
Reply With Quote
  #8  
Old 14th October 2011, 19:39
mykel mykel is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Have you tried to set permissions as shown in the tutorial?

Code:
mkdir -p /media/usb0/shares/allusers
chown -R root:users /media/usb0/shares/allusers/
chmod -R ug+rwx,o+rx-w /media/usb0/shares/allusers/
I've just tried the last two line of codes and I still can't write to it. I rebooted just the NSLU after issuing those codes. I'm out of my wits on this one. Aside of uninstaling SAMBA and starting again, I really don't know what to do. If you however find the solution, well, a thousand good German beer.
Reply With Quote
  #9  
Old 15th October 2011, 12:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

I'm running out of ideas as well...
__________________
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
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
Installation just stops, and dies. cosmicsafari Installation/Configuration 3 19th July 2011 10:24
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 16:54
[debian 5 + ispconfig 3] Unable to send mail tanakskool HOWTO-Related Questions 6 4th November 2009 18:20
Samba Hard Drive Issues atjensen11 Server Operation 3 6th September 2008 18:08
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 00:57


All times are GMT +2. The time now is 13:04.


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