Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old December 8th, 2008   #11
mgmiller
Dark Roasted Ubuntu
 
mgmiller's Avatar
 
Join Date: Nov 2005
Location: New York, USA
Beans: 1,106
Ubuntu 9.10 Karmic Koala
Re: 1 Samba share, 2 different user privileges

You're welcome.

Is user "xbox" able to work with any shares on your server? Try setting up a new folder that is only shared by xbox and see if he can access it. If so, look closely at smb.conf for a clue as to why xbox can see one folder, but not another. If you can't get any shares working for xbox, it's probably a system wide permissions thing, perhaps, xbox not being in the right groups.
I only wish I could figure out what your problem is. Beyond this, I'm stumped.

If I think of something else, I will post back here.

If you do figure it out, please post here so I can see the solution also.
__________________
Using Ubuntu since Warty Warthog (4.10)
32 bit Ubuntu upgraded from 5.04>5.10>6.06>6.10>7.04>7.10>8.04>8.10>9.04>9.10
Starting over with a clean install of 64 bit 9.10
mgmiller is offline   Reply With Quote
Old December 9th, 2008   #12
BassKozz
Dipped in Ubuntu
 
BassKozz's Avatar
 
Join Date: Jun 2007
Beans: 600
Ubuntu 9.10 Karmic Koala
Re: 1 Samba share, 2 different user privileges

Just an update:
I've renamed the /Media/ directory to /media/ (thinking the cap "M" might have been the culprit), nope still broken
I've "sudo chown 777" my folder that is being shared, didn't fix it
I created a completely new folder and setup a new share (named "Xbox"), and still Broken
I also have been reviewing my /var/log/samba folder and I've narrowed down the exact error message:
Code:
[2008/12/08 23:58:24,  0] smbd/service.c:make_connection_snum(1152)
  '/media/RAID-storage/media' does not exist or permission denied when connecting to [Xbox] Error was Permission denied
After doing a google search for "smbd/service.c:make_connection_snum(1152)" it looks like quite a few people have had similar issues, but I have yet to find a definitive solution...
I'll post back when I learn more.
Thanks Again

Edit, another Update:
I learned how to login to smb shares via the command line (so I am not using Nautilus any more to try and access them, to rule out Nautilus as the culprit) here are the results:
Code:
basskozz@Unicorn-NAS:/var/log/samba$ smbclient //Unicorn-NAS/RAID-Storage_Media/
Enter basskozz's password: 
Domain=[UNICORN-NAS] OS=[Unix] Server=[Samba 3.2.3]
smb: \> ls
  .                                   D        0  Sun Dec  7 16:23:43 2008
  ..                                  D        0  Mon Dec  8 23:47:50 2008
  Test                                A        0  Sun Dec  7 16:20:12 2008
  14 - I Wish You Well.mp3            A 11021582  Sun Dec  7 16:23:44 2008

		58682 blocks of size 8388608. 55674 blocks available
smb: \> exit
basskozz@Unicorn-NAS:/var/log/samba$ smbclient //Unicorn-NAS/Xbox/
Enter basskozz's password: 
Domain=[UNICORN-NAS] OS=[Unix] Server=[Samba 3.2.3]
tree connect failed: NT_STATUS_ACCESS_DENIED
basskozz@Unicorn-NAS:/var/log/samba$ smbclient //Unicorn-NAS/Xbox/ -U xbox
Enter xbox's password: 
Domain=[UNICORN-NAS] OS=[Unix] Server=[Samba 3.2.3]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
basskozz@Unicorn-NAS:/var/log/samba$
On the first login above I logged into my working share that uses my login.
On the second login I tried to login to the 'xbox' share using my main login account which didn't work ***AS EXPECTED*** because 'basskozz' is not a valid user for that share
On the third login I tried to login to the "Xbox" share using user 'xbox', still not working but now I have a new error to look into: NT_STATUS_BAD_NETWORK_NAME
__________________
Ubuntu 9.10 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 9.04 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5 | 200GB OS

Last edited by BassKozz; December 9th, 2008 at 09:57 AM..
BassKozz is offline   Reply With Quote
Old December 9th, 2008   #13
BassKozz
Dipped in Ubuntu
 
BassKozz's Avatar
 
Join Date: Jun 2007
Beans: 600
Ubuntu 9.10 Karmic Koala
Re: 1 Samba share, 2 different user privileges

SOLUTION FOUND !!!
FINALLY !!!

I must give credit to this post: http://www.linuxquestions.org/questi...92#post3189392
Quote:
Had the same problem ... spent the better part of a day trying to work through it. For me, the error message set me up for failure by leading me down the wrong path looking for a solution. The real underlying problem was directory permissions two directories above in the path.

Be sure the entire path has at least golbal 'read' permissions set!
The problem was that the perant directory /media/RAID-storage had it's "others" folder access set to "none"

I am up and running now, THANK GOD that's over.
I am so excited right now, Thanks for all the help mgmiller
__________________
Ubuntu 9.10 64-bit - IP35-Pro | Q6600@3.3ghz(TRUE [lapped]) | G.Skill 2x2GB | MSI NX8600GT | 150GB WD Raptor ||| NAS - Ubuntu 9.04 - Intel D865GBF | P4 3.0GHz | G.Skill 4x1GB | FX5200-AGP | 3x250GB mdadm Raid5 | 200GB OS

Last edited by BassKozz; December 9th, 2008 at 01:48 AM..
BassKozz is offline   Reply With Quote
Old December 9th, 2008   #14
mgmiller
Dark Roasted Ubuntu
 
mgmiller's Avatar
 
Join Date: Nov 2005
Location: New York, USA
Beans: 1,106
Ubuntu 9.10 Karmic Koala
Re: [SOLVED] 1 Samba share, 2 different user privileges

Hooray! The solution actually makes sense.

This is a valuable lesson, the whole path has to have the correct permissions, not just the target folder.

Glad it's finally working.....
__________________
Using Ubuntu since Warty Warthog (4.10)
32 bit Ubuntu upgraded from 5.04>5.10>6.06>6.10>7.04>7.10>8.04>8.10>9.04>9.10
Starting over with a clean install of 64 bit 9.10
mgmiller is offline   Reply With Quote

Bookmarks

Tags
privilages, samba, samba users, users

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


All times are GMT -4. The time now is 06:50 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry