LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 11-18-2010, 02:29 PM   #1
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Rep: Reputation: 16
Question Sharing folder with Windows network


I have two partitions, both formatted as ext4. One with Ubuntu 10.10 64-bits and the other just for data (formatted as ext4 zero). I wanted to share a folder from this second partition. I followed the instructions on http://tech.mobiletod.com/how-enable...cation-ubuntu/ but there was not any "Windows networks (SMB)" option, only "Unix networks (NFS)". Why is this?
 
Old 11-18-2010, 06:30 PM   #2
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Rep: Reputation: 96
512upload,

It looks to me like shares-admin is hosed in general. I do not have a 10.10 64 bit machine at the moment (downloading the image now) but I tried a 32 bit version. It prompted me to install both. I unselected NTFS and it came back and both were checked - told me they both needed to be installed. I told it to install and it (seems like) it did - although it did not ask me for to authenticate for escalated privileges. This is a security issue and I will file a bug if I can confirm. That said... with both NTFS and SMB supposedly installed shares-admin told me again that I needed to install them.

I ran shares-admin on my 10.04 box which has samba installed and running and several subdirectory share points available to my windows virtual machines. The program told me I needed to install samba. Bottom line, I think shares-admin is truly hosed.

If you want to setup samba by hand - it really is not that hard to do a basic setup - have a look here http://www.jonathanmoeller.com/screed/?p=1590

Feel free to ask any specific questions in this thread.

Ken
 
Old 11-24-2010, 09:13 PM   #3
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
I have installed Samba from the Ubuntu Software Center and I did what Jack Bauer said in the last comment on https://answers.launchpad.net/samba/+question/135121 and I solved this sharing issue.
 
Old 12-26-2010, 04:01 PM   #4
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
But now there is another problem: see update 2 on

https://answers.launchpad.net/ubuntu/+question/137600

Can you help me, please?
 
Old 12-26-2010, 04:29 PM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Rep: Reputation: 96
It might help if you can post your smaba configuration file /etc/samba/smb.conf Also tell us what directories you are trying to copy from and to.

Ken
 
Old 12-26-2010, 05:07 PM   #6
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
Here is the samba configuration file:

http://www.text-upload.com/read.php?id=36329&c=1219000

I am trying to cut (not copy as I said before, sorry) a folder from

\ mnt \ cdrive \ shared sf \ Joćo \ Downloads \ BTNext (location 1)

to

\ home \ sf \ .wine \ drive_c \ BTNext (location 2)

Since the "cut" option from the right-click menu over folders inside location 1 is greyed out, I can't move the folder I would like to move.

Thank you for your time!

Looking forward for your early reply.
 
Old 12-26-2010, 06:34 PM   #7
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Rep: Reputation: 96
This is very bizarre! I have created a directory on my Linux machine within a Samba share and tried various restrictive permissions both from the Windows side (making it Read Only) and from the Linux side (changing the owner and group to root and removing permissions from everyone else). I no case does Windows Explorer gray out the cut option. Even when I cannot cut the directory or folder. I have even tried a CD ROM disk. Cut is enabled although I obviously cannot cut the files from a CD ROM.

Can you copy the folder to location 2?
Can you delete the folder from location 1?

If not, what error messages to you see?

Ken
 
Old 12-26-2010, 06:38 PM   #8
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Rep: Reputation: 96
Another thought... do you have an username/account on your Linux machine corresponding to your Windows username? It should not matter the way your Samba share is defined. At least in theory.

Ken
 
Old 12-27-2010, 07:35 AM   #9
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by taylorkh View Post
This is very bizarre! I have created a directory on my Linux machine within a Samba share and tried various restrictive permissions both from the Windows side (making it Read Only) and from the Linux side (changing the owner and group to root and removing permissions from everyone else). I no case does Windows Explorer gray out the cut option. Even when I cannot cut the directory or folder. I have even tried a CD ROM disk. Cut is enabled although I obviously cannot cut the files from a CD ROM.

Can you copy the folder to location 2?
Can you delete the folder from location 1?

If not, what error messages to you see?

Ken
You didn't understand: the cut option is greyed out on Ubuntu, not on Windows XP.
 
Old 12-27-2010, 07:36 AM   #10
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by taylorkh View Post
Another thought... do you have an username/account on your Linux machine corresponding to your Windows username? It should not matter the way your Samba share is defined. At least in theory.

Ken
No, why?
 
Old 12-27-2010, 08:27 AM   #11
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Rep: Reputation: 96
Sorry - I had used google translate to read your post on launchpad. I thought you were using Windows to manipulate the folders. Have a look at the Linux permissions of the folder you are trying to cut.
Quote:
ls -l "\mnt\cdrive\shared sf\Joćo\Downloads"
The quotes are necessary because of the space in shared sf. Your account on the Ubuntu machine or your Group on the Ubuntu machine must have write permission to the folder in order to cut or delete it. If you need assistance in interpreting the results of ls -l do a search. There are many excellent tutorials on the net. You can use chmod to correct the permissions on the folder to allow you to cut or delete it.

As to my user account question... I have always disabled guest access to the Linux machine via Samba. I access it with my Windows account and password which have a corresponding and matching account and password on the Linux box. I guess I have spent too many years doing security admin on every platform from the PC to the MVS mainframe to intentionally allow sightseers and onlookers a free ride

Ken
 
Old 12-27-2010, 12:31 PM   #12
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
Unhappy

Quote:
Originally Posted by taylorkh View Post
Your account on the Ubuntu machine or your Group on the Ubuntu machine must have write permission to the folder in order to cut or delete it. If you need assistance in interpreting the results of ls -l do a search. There are many excellent tutorials on the net. You can use chmod to correct the permissions on the folder to allow you to cut or delete it.
There is a problem with your suggestion: if I use chmod to correct the permissions on the folder, it means I will have to use chmod every time someone at my home copies/moves a folder from a PC/laptop with Windows to "shared sf" (the shared folder in Ubuntu) and, as you may understand, this is not practical at all. Is there a way for me not to have to use chmod all the time?
 
Old 12-27-2010, 12:33 PM   #13
512upload
Member
 
Registered: Jul 2007
Distribution: Ubuntu
Posts: 137

Original Poster
Rep: Reputation: 16
Also,

sf@SF-desktop:~$ ls -l "\mnt\cdrive\shared sf\Joćo\Downloads"
ls: nćo consigo aceder a \mnt\cdrive\shared sf\Joćo\Downloads: Ficheiro ou directoria inexistente

This means that it was not possible to access the referred folder because Ubuntu "thinks" the folder or directory does not exist.
 
Old 12-27-2010, 12:45 PM   #14
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Rep: Reputation: 96
What (physically) is /mnt/cdrive? Is it an external hard drive or something like that? What filesystem is if formatted as?

And why is it under /mnt ?

Ken

Last edited by taylorkh; 12-27-2010 at 01:03 PM.
 
Old 12-27-2010, 12:56 PM   #15
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Rep: Reputation: 96
Try
Quote:
ls -l "/mnt/cdrive/shared sf/Joćo/Downloads"
Linux slashes not Windows slashes
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Network sharing folder cheesewizz Linux - Networking 4 05-27-2009 12:08 PM
Sharing a folder between two network computers reverse Debian 2 08-14-2007 11:05 AM
window xp sharing folder on a network blackzone General 1 09-10-2006 06:34 PM
Debian and Sharing Windows Folder gibran Linux - Networking 3 09-18-2005 12:45 PM
Sharing Windows Folder Caveman Linux - Newbie 5 09-26-2003 01:37 PM


All times are GMT -5. The time now is 10:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration