LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2014, 11:14 PM   #16
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled

Code:
lsblk
NAME                       MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                          8:0    0 596.2G  0 disk 
└─sda1                       8:1    0 596.2G  0 part /home/media
sdc                          8:32   0    28G  0 disk 
├─sdc1                       8:33   0   500M  0 part /boot
└─sdc2                       8:34   0  27.5G  0 part 
  ├─vg_hoth-lv_root (dm-0) 253:0    0  24.7G  0 lvm  /
  └─vg_hoth-lv_swap (dm-1) 253:1    0   2.8G  0 lvm  [SWAP]
sdb                          8:16   0 298.1G  0 disk 
└─sdb1                       8:17   0 298.1G  0 part /home/backup

Code:
 ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx. 1 root root 10 Feb 13 08:13 0d5c9f4b-9081-4ff8-ae2c-aaa0cf003823 -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Feb 13 08:13 110a2724-c518-4762-bcd4-944b150296c4 -> ../../sdc1
lrwxrwxrwx. 1 root root 10 Feb 13 19:38 3bd39d9e-7a2c-40b2-9848-4cb68be4683c -> ../../sdb1
lrwxrwxrwx. 1 root root 10 Feb 13 08:13 6f1cc66d-43e9-4497-995c-6dd7935414f8 -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Feb 13 19:38 c487bd2f-f036-4441-b1be-c12472660a56 -> ../../sda1
 
Old 02-15-2014, 01:32 PM   #17
Ryanms3030
Member
 
Registered: Jan 2014
Distribution: Debian, Mint, CentOS, Ubuntu
Posts: 261

Original Poster
Rep: Reputation: Disabled
This now seems to be solved for me. I don't have a real good explanation because I basically used the shotgun method and reimaged my server with Debian and set up everything from scratch. I installed autofs to auto mount the drives and configured my shares in samba swat. It took some playing around with my samba config to get it working but now I can mount shares and read and write. My config looks like this:

Code:
[global]
	server string = %h server
	map to guest = Bad User
	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:* %n\n *password\supdated\ssuccessfully* .
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 1000
	dns proxy = No
	usershare allow guests = Yes
	panic action = /usr/share/samba/panic-action %d
	idmap config * : backend = tdb

[homes]
	comment = Home Directories
	valid users = %S
	create mask = 0700
	directory mask = 0700
	browseable = No

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

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

[media]
	path = /media/usb0
	valid users = ryan
	admin users = ryan
	read only = No
	create mask = 0777
	directory mask = 0777

[backup]
	path = /media/backup
	valid users = ryan
	admin users = ryan
	read only = No
	create mask = 0777
	directory mask = 0777

I have already reinstalled my server 4-5 times in the past 2 months trying to figure everything out and also have been going back and forth between CentOS and Debian trying to figure out what I like better. The good thing is I am learning a bit about both OS and the differences. Now I will move on to figuring out KVM and the plan is to run virtual CentOS, Debian and Ubuntu servers so I can get exposure on everything
 
Old 02-15-2014, 02:10 PM   #18
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Ryanms3030 View Post
This now seems to be solved for me. ... I used the shotgun method and reimaged my server with Debian and set up everything from scratch.
Well, "ouch", but as long as you learned something and it's working.

Backup the smb.conf from now on?

SWAT's ok, I have to use it myself configuring that stuff.

Peace.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to automount usb flash drives in Thunar (openbox) iamthat Linux - Newbie 1 05-12-2010 12:56 AM
Automount USB drives in KDE Xeratul Linux - Software 5 05-21-2007 04:03 PM
automount dvd-rw, usb drives? darkangel29 Linux - Hardware 0 02-26-2007 01:08 AM
USB drives don't automount Ashrack Linux - Hardware 2 02-13-2007 01:22 PM
Automount usb drives in specific path g0ng Linux - Hardware 1 02-12-2007 07:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration