Skip to main content

Thread: Configuring Samba server with USB harddrives and printer


i'm running ubuntu 9.10 server edition 2.6.31-16-generic-pae kernel. attempting share 3 harddrives , printer lan using samba. 2 of harddives (formatted ntfs , fat32) , printer (hp officejet 5610) attached via usb. third harddive, formatted ext4, attached via sata.

have installed ubuntu-desktop, , have set log-in automatically administrator account. intend manage computer remotely via ssh, , physical security of lan shouldn't problem.

hoping share of harddrives , printer read/write resources local network, keep running trouble. wish possible--allowing multiple users access drives , printer computers running ubuntu , windows xp/vista/7, while allowing complete guest access of hdds , printer new computer/user might join network.

having terrible time getting of client operating systems have full access, getting drives automount server on boot, , allowing guest printing... while allowing administrative account logged in server.

have far in samba configuration (/etc/samba/smb.conf):
code:
[global]  	load printers = yes  	allow hosts = 127.0.0. 192.168.1.  	netbios name = server  	printing = cups  	remote announce = 192.168.1.255  	workgroup = workgroup  	printcap name = cups  	security = share  	create mask = 664  	directory mask = 775    [printers]  	comment = printers  	browseable = yes  	printable = yes  	path = /var/spool/samba    [1tbblack]  	comment = 1 tb black external harddrive  	path = /media/1tbblack  	force user = sambashare  	force group = sambashare  	read = no  	guest ok = yes    [300gbgray]  	comment = 300 gb gray seagate harddrive  	path = /media/300gbgray  	force user = sambashare  	force group = sambashare  	read = no  	guest ok = yes
i have tried having usb drives automount adding them fstab (/etc/fstab):
code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>  proc            /proc           proc    defaults        0       0  /dev/mapper/server-root /               ext4    errors=remount-ro 0       1  # /boot on /dev/sda5 during installation  uuid=381a2473-2c19-4f6d-9370-a4debfb68d90 /boot           ext2    defaults        0       2  /dev/mapper/server-swap_1 none            swap    sw              0       0  /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0  /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0  #external hdds  #/dev/sdc1 (1tbblack)  uuid=c0307dfa307df82c	/media/1tbblack	ntfs-3g	defaults,locale=en_us.utf8	0	0  #/dev/sde1 (300gbgray)  uuid=1dd9-1023	/media	vfat	user,rw,umask=111,dmask=000	0	0
i have tried installing 'usbmount' package, still doesn't work. @ 1 point, before fstabing, able printing work couple of separate machines, have never been able full hdd read/write access. figured because mounted when server admin account logged in, making owner of file, , overriding samba settings guest access. thought might fix fstab automounting.

figured make type of sharing group, created user "sambashare" normal user account, , put in "sambashare" group, along admin user. made "sambashare" owner user , group of mount points (/media/1tbblack, etc.) 0775 permissions. followed directions here: http://www.samba.org/samba/docs/man/...faststart.html , ran command "smbpasswd -a sambashare" password.

unable access / see of network computers, , i'm stuck next. might of gone doing wrong, followed tons of different guides on place.

have advice on should go here? or, better, there step-by-step guide on how 9.10 fstab issues in mind?

thanks!



Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [all variants] Configuring Samba server with USB harddrives and printer


Ubuntu

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor