Quantcast

Maximum PC

It is currently Tue Jul 29, 2014 5:03 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: This stupid computer won't obey my commands
PostPosted: Mon Sep 27, 2010 6:56 pm 
Professional Dork
Professional Dork
User avatar

Joined: Tue May 25, 2004 12:44 pm
Posts: 1246
Location: Cornhole County
Alright then. I had a Windows Server, um, server, that died and ate my data. Now I've rebuilt it and loaded a backup, but I can't get the fucker to share files.

Running Ubuntu Server 10.4 with GNOME loaded because I'm fucking useless without a goddamn GUI.

I installed Samba and I can share a folder that is on the root drive. For example, if I share /testfolder via samba, it shows up on my wife's Windows laptop, and I can open and browse the folder. Same thing on my Ubuntu desktop.

Now, the drive that I'm trying to share is a RAID device (mirrored disks). I've managed to make this bastard understand to start the fucking RAID device on startup, and even made it mount the drive in /data.

Yet it still looks at me like I just fucked its sister when I try to open and browse a share on the RAID device, at least from the Ubuntu side. From Windows, it tells me that Windows can't access it and to check the name. I mean, I'm quite certain of the name since it appears as an available share on the server, which does show up in Network Neighborhood.

There has got to be a solution to this, and given the amount of work I've put into getting the fucker to work, I am quite certain that I'm going to feel like a goddamn idiot when someone tells me what it is (this, of course, is known as the "the harder you try, the easier the solution" method of problem solving).


Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Mon Sep 27, 2010 7:30 pm 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 5:29 pm
Posts: 6328
Location: Far away from you
My first thought is are you allowing guest access...basically guest ok =yes in your smb.conf.

Perhaps changing the owner or your mount point to nobody may give you some love.


Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Mon Sep 27, 2010 7:49 pm 
Professional Dork
Professional Dork
User avatar

Joined: Tue May 25, 2004 12:44 pm
Posts: 1246
Location: Cornhole County
guest ok = yes is set

I chown'd the /data folder to nobody, and I got the same thing.


Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Mon Sep 27, 2010 8:05 pm 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 5:29 pm
Posts: 6328
Location: Far away from you
I assume you restarted samba after doing that?

I dunno...what's your conf look like?


Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Tue Sep 28, 2010 3:05 am 
Professional Dork
Professional Dork
User avatar

Joined: Tue May 25, 2004 12:44 pm
Posts: 1246
Location: Cornhole County
Stripped out the comments

Code:
[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   encrypt passwords = true
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user

#======================= Share Definitions =======================

wins support = no
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

# THIS ONE DOESN'T WORK
[admin]
   path = /data/admin
   comment = admin data
   read only = no
   writable = yes
   guest ok = yes
   browseable = yes

# THIS ONE DOES
[testshare]
   path = /testshare
   comment = test
   read only = no
   writable = yes
   guest ok = yes
   browseable = yes



Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Tue Sep 28, 2010 6:29 pm 
Professional Dork
Professional Dork
User avatar

Joined: Tue May 25, 2004 12:44 pm
Posts: 1246
Location: Cornhole County
I'm 99% convinced that my problem is related to the RAID drive.


Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Tue Sep 28, 2010 8:12 pm 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 5:29 pm
Posts: 6328
Location: Far away from you
I would agree, but I think it just boils down to a permission or a UUID that's gone awry...

For some reason I want to think that I thought you needed /dev/md0 (or whatever your raid is) in the path, but I could be wrong there.

What's your mdadm.conf look like?


Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Wed Sep 29, 2010 4:02 pm 
Professional Dork
Professional Dork
User avatar

Joined: Tue May 25, 2004 12:44 pm
Posts: 1246
Location: Cornhole County
Code:
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays

# This file was auto-generated on Sat, 25 Sep 2010 14:21:45 -0500
# by mkconf $Id$

ARRAY /dev/md0 devices=/dev/sdb1,/dev/sdc1


Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Thu Sep 30, 2010 4:40 am 
Professional Dork
Professional Dork
User avatar

Joined: Tue May 25, 2004 12:44 pm
Posts: 1246
Location: Cornhole County
Now I'm thinking that I'm just going to use my primary drive to store data and use the 500's to back up to.

Googling, I found a few things, including chmod and chown commands, but none of that helped.


Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Thu Sep 30, 2010 7:25 pm 
Professional Dork
Professional Dork
User avatar

Joined: Tue May 25, 2004 12:44 pm
Posts: 1246
Location: Cornhole County
All right. This is just F'n weird.

If I share /data, it works.
If I share /data/admin, it doesn't work.

It doesn't seem to matter what directory I'm trying to share. So if it's on the primary drive or on a RAID device or what.

For some reason, it just hates me trying to share anything not on the root of the drive.

What the hell


Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Thu Sep 30, 2010 7:31 pm 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Jun 16, 2004 5:29 pm
Posts: 6328
Location: Far away from you
Try changing

CREATE owner=root group=disk mode=0660 auto=yes

CREATE owner=user (you) group=users mode=0666 auto=yes

erk...just saw your last post....by chance are you using the -R flag when setting your permissions?


Top
  Profile  
 
 Post subject: Re: This stupid computer won't obey my commands
PostPosted: Thu Sep 30, 2010 7:55 pm 
Professional Dork
Professional Dork
User avatar

Joined: Tue May 25, 2004 12:44 pm
Posts: 1246
Location: Cornhole County
furball146 wrote:
Try changing

erk...just saw your last post....by chance are you using the -R flag when setting your permissions?


Yes.


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group