Shared Folder

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Shared Folder

Postby bcracer5 on Fri Jun 12, 2009 9:12 pm

I have been using ubuntu on my home network (i am ready to switch to Mint). I had a shred folder set up and now the other local computers can not access. I checked the shared folder properties and everything is set up correctly. I have checked the network and the other computers do show up. Any ideas why I can not connect to the shared folder?

Thanks
Bryan
bcracer5
Level 1
Level 1
 
Posts: 10
Joined: Fri Jun 12, 2009 2:58 pm

Linux Mint is funded by ads and donations.
 

Re: Shared Folder

Postby Nicki on Sat Jun 13, 2009 8:32 am

Maybe the firewall. Set is as default=disabled. No problem with this, you are safe anyway.
Nicki
Level 3
Level 3
 
Posts: 164
Joined: Wed May 27, 2009 3:15 pm
Location: Sweden

Re: Shared Folder

Postby altair4 on Sat Jun 13, 2009 8:39 am

I think we need a bit more information to diagnose this problem:

(1) The shared folder is on Ubuntu and not Mint, correct?
(2) What OS is on the other machines that cannot access the share?
I had a shred folder set up and now the other local computers can not access.

(3) Is this a recent development - did the other lan member have access at one time and it just recently stopped?
(4) What is the exact error message you are receiving - if any.
(5) How did you share the folder - using "Simple Sharing" or "Classic Samba". The share definitions are in different locations:
Simple Sharing is defined in /var/lib/samba/usershares
Classic Samba is defined in etc/samba/smb.conf

You might want to do this just so we can see if something odd has happened to your config files:
Open Terminal
Type testparm /etc/samba/smb.conf

This will do 2 things:

(1) It will do a check on the syntax and other checks on the content of
the smb.conf file itself
(2) The last step will be to output to the terminal the smb.conf file
itself without any comments ( the lines starting with "#" and ";" )
making it a lot smaller when you post to the forums
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6125
Joined: Tue Feb 03, 2009 10:27 am

Re: Shared Folder

Postby bcracer5 on Sun Jun 14, 2009 9:28 am

Thanks for the reply
-all computers on the network are running ubuntu 9.04
-i had to replace a router - no special configuration
-the error was "not able to mount" the the shared folder name
-i shared the folder by right clicking on the folder then followed the instructions - i am unsure if that is simple sharing or classic samba
bryan@bryan:~$ testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
passdb backend = tdbsam
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

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

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
bryan@bryan:~$
bcracer5
Level 1
Level 1
 
Posts: 10
Joined: Fri Jun 12, 2009 2:58 pm

Re: Shared Folder

Postby altair4 on Sun Jun 14, 2009 9:45 am

Well, based on your smb.conf file if you're using "Classic Samba" you have no shares defined to access.

Go to /var/lib/samba/usershares. If your using "Simple Sharing" you will see a list of files that represent your shares. Double click them and it will send them to gedit. Copy and paste them to this forum so we can see if there is something "funny" about them

Note: they should look something like this:
#VERSION 2
path=/media/SEAGATE
comment=
usershare_acl=S-1-1-0:R
guest_ok=y
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6125
Joined: Tue Feb 03, 2009 10:27 am

Re: Shared Folder

Postby bcracer5 on Sun Jun 14, 2009 5:46 pm

#VERSION 2
path=/shared/music
comment=
usershare_acl=S-1-1-0:R
guest_ok=n

#VERSION 2
path=/shared
comment=
usershare_acl=S-1-1-0:F
guest_ok=y
bcracer5
Level 1
Level 1
 
Posts: 10
Joined: Fri Jun 12, 2009 2:58 pm

Re: Shared Folder

Postby altair4 on Sun Jun 14, 2009 6:44 pm

OK, it looks like you are using "Simple Sharing".
Let's see if we can deduce what's happing here:

It also looks like you created a directory called "/shared". Since it's "/shared" and not "/home/your_userid/shared" you could not have done this:
-i shared the folder by right clicking on the folder then followed the instructions
unless /shared is also a partition and you mounted it so a user can access it or it is just a directory and you changed ownership from root to your_userid.

If /shared is a partition could you post the line in /etc/fstab that mounts the partition ?
If /shared is a directory can you issue the following in a terminal so we can see the permissions: ls -l /shared ( That "l" is a small case "L" ). I'm thinking that this is a permissions problem of some sort.

The one thing that is odd is that based on the definitions in your /var/lib/samba/usershares, /shared is set up with read/write access to anybody while /shared/music is set up as Read Only and requires a user name and password for access. Is that what you intended? Do you have usernames and passwords set up on that box for access to that share?

EDIT:
Just so you know, I'm basing most of this on Mint7. I don't have Ubuntu so I don't know how much Mint deviates from the Ubuntu you're running.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6125
Joined: Tue Feb 03, 2009 10:27 am

Re: Shared Folder

Postby bcracer5 on Mon Jun 15, 2009 8:29 am

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sdb2
UUID=30699660-71b8-40ea-be39-078581f8bbf8 / ext3 relatime,errors=remount-ro 0 1
# /dev/sdb3
UUID=d600706d-ed99-4eed-86c7-39ba38b413f6 /home ext3 relatime 0 2
# /dev/sdb5
UUID=7a7541d5-d135-4cf2-87f8-c4b7fdcf1465 /music ext3 relatime 0 2
# /dev/sdb6
UUID=6f1a75a4-0f80-4703-b707-ca62d2d7be55 /storage ext3 relatime 0 2
# /dev/sdb7
UUID=9d3bc7ca-3ca0-4aa9-b136-5b428b2d63ff none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
# /dev/sdd1
UUID=88aa42a8-3d30-4c83-bbd6-84682240355b /shared ext3 relatime 0 2

bryan@bryan:~$ ls -l /shared
total 20
drwxr-xr-x 2 bryan bryan 16384 2009-05-25 17:31 lost+found
drwxr-xr-x 7 bryan bryan 4096 2009-05-26 08:31 music
bryan@bryan:~$

/shared is the partition that i would like the users to access /music is the directory
bcracer5
Level 1
Level 1
 
Posts: 10
Joined: Fri Jun 12, 2009 2:58 pm

Re: Shared Folder

Postby altair4 on Mon Jun 15, 2009 12:20 pm

I'm trying to reproduce your problem but I can't. I have to say though you had to jump through some hoops to get as far as you did. There is no way you could have shared "/share" as bryan because bryan doesn't own "/share" , root does. If you tried you would have received an error like this:
'net usershare' returned error 255: net usershare add: cannot share path /share as we are restricted to only sharing directories we own.

You must have opened nautilus as root and shared it there.

"/share" was set up allowing anybody to do anything they want with it yet the only content of "/share" is "/share/music" which is owned by bryan and set up to require a username and password to have access.

Here's is what I would do just to simplify things:

"Un-share" everything.
Share only /share/music and do that by user: bryan not root.
Determine if you require a username and password to have access and whether or not you want remote users to have write access. If you want username / password authentication you need to create them in two different locations in the box that has /share/music.

Maybe I'll have an Ah-Ha" moment here that will allow me to see the problem more clearly.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6125
Joined: Tue Feb 03, 2009 10:27 am

Re: Shared Folder

Postby bcracer5 on Mon Jun 15, 2009 3:54 pm

I unshared the existing shares and shared only /shared/music. still did not work. Originally when i set it up it was very easy especially if I was able to do it.

thanks
bcracer5
Level 1
Level 1
 
Posts: 10
Joined: Fri Jun 12, 2009 2:58 pm

Re: Shared Folder

Postby altair4 on Mon Jun 15, 2009 3:56 pm

(1) What is the exact error message you are getting.

EDIT:

(2) Does your share definition still look like this:
#VERSION 2
path=/shared/music
comment=
usershare_acl=S-1-1-0:R
guest_ok=n


And if so have you created users on your box and users in samba to authenticate access?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6125
Joined: Tue Feb 03, 2009 10:27 am

Re: Shared Folder

Postby bcracer5 on Mon Jun 15, 2009 4:34 pm

Sorry this is so troublesome...being new i thought it was just something stupid on my part.

#VERSION 2
path=/shared/music
comment=
usershare_acl=S-1-1-0:R
guest_ok=n

**what about the last line above - gueat_ok=n...should that be a yes?

the exact error:"unable to mount location", "failed to mount windows share"

Thanks for all your help!
Bryan
bcracer5
Level 1
Level 1
 
Posts: 10
Joined: Fri Jun 12, 2009 2:58 pm

Re: Shared Folder

Postby altair4 on Mon Jun 15, 2009 4:48 pm

guest_ok=n

As I have said this will require the remote user to supply a username and password.

guest_ok=y

This will allow anyone to access that share without asking for a username and password.

I don't know what your requirements are.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6125
Joined: Tue Feb 03, 2009 10:27 am

Re: Shared Folder

Postby bcracer5 on Mon Jun 15, 2009 5:34 pm

it is fine the way it is...connecting is the bigger issue

B-
bcracer5
Level 1
Level 1
 
Posts: 10
Joined: Fri Jun 12, 2009 2:58 pm

Re: Shared Folder

Postby altair4 on Mon Jun 15, 2009 5:51 pm

I have no idea what your last comment means.

I would suggest that you read the following HowTo on setting up Simple Sharing: viewtopic.php?f=42&t=23169

I don't know how well it translates to Ubuntu since it's written for Mint but ....
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6125
Joined: Tue Feb 03, 2009 10:27 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 26 guests