This brief tutorial will outline how to enable file sharing in Ubuntu. هذا البرنامج التعليمي سوف موجز مخطط كيفية تمكين ملف تقاسم في أوبونتو.
- Sharing files and folders across your network from your Ubuntu PC is every bit as easy as sharing files in Windows (arguably, it’s easier). تقاسم الملفات والمجلدات الخاصة بك عبر شبكة من أجهزة الكمبيوتر الخاص بك أوبونتو هو كل بت سهلا كما تقاسم الملفات في ويندوز (يمكن القول ، أنه من الأسهل). Start by right-clicking the folder you want to share, and select Share Folder . ابدأ بالنقر بزر الماوس الأيمن فوق المجلد الذي تريد مشاركته ، واختيار الاسهم مجلد. If the services required to share files/folders aren’t installed, you’ll be prompted to install them. وإذا كان نصيب الخدمات المطلوبة لملفات / المجلدات غير مثبتة ، سيطلب منك تثبيت لهم.
- After clicking Install services they will automatically start to download and install. وبعد النقر على تثبيت الخدمات التي سوف تبدأ تلقائيا لتنزيل وتركيب.
- Once that has completed you’ll be presented with an options window. وبمجرد أن انتهت من عرض عليك أن تكون مع خيارات النافذة. From here you can select the type of sharing (SMB or NFS), give the shared folder a name and decide if you want read-only access to the folder. من هنا يمكنك اختيار نوع من تقاسم (الشركات الصغيرة والمتوسطة أو نظام ملف الشبكة) ، وإعطاء مجلد مشترك على اسم وتقرر إذا كنت تريد قراءة فقط الوصول إلى مجلد. Click OK when you’re done. انقر فوق موافق عند انتهائك من ذلك.
- If you right-click on your newly shared folder and select Properties and then the Emblems tab, you can give the folder a unique icon so you’ll know it’s shared. وإذا كان لكم حق انقر على انتخابكم حديثا مجلد مشترك وحدد خصائص وبعد ذلك شعارات علامة التبويب ، يمكنك إعطاء مجلد فريدة من نوعها أيقونة حتى فستعرف انها مشتركة.
- You can further modify the permissions of your shared folder by selecting the Permissions tab. يمكنك كذلك تعديل الأذونات الخاصة بك من مجلد مشترك التصاريح عن طريق اختيار علامة التبويب.
- Now open a terminal in Ubuntu and enter the command: الآن فتح المعبر في أوبونتو ودخول القيادة :
sudo smbpasswd -a username sudo - smbpasswd اسم المستخدم
This will add a SMB user. هذا وستضيف مستخدم في الشركات الصغيرة والمتوسطة.
- And now other computers can connect to your shared folder! والآن يمكن ربط أجهزة الكمبيوتر الأخرى الخاصة بك إلى مجلد مشترك!




click to enlarge اضغط هنا لتكبير الصورة

click to enlarge اضغط هنا لتكبير الصورة


![[سبورل]](/images/sharing/stumbleupon.png)




















{ 3 trackbacks } (3) تركبكس
{ 32 comments… read them below or (32 التعليقات... قراءتها أو أقل add one إضافة واحد } )
And when it asks you for the username and password? وعندما طلب منك لاسم المستخدم وكلمة السر؟ Do you give the username and password of the linux account? هل إعطاء اسم المستخدم وكلمة المرور من حساب لينكس؟
Ferdinand, فرديناند ،
Yes - sorry I should have included that - will update shortly. نعم -- أنا آسف كان ينبغي أن يتضمن ذلك -- ستستكمل قريبا.
I have Ubuntu 7.04 running in Parallels Desktop. لقد أوبونتو 7.04 على التوالي في المتوازيات سطح المكتب. Will it possible to access a shared folder from Mac OS X running on the same machine. وهل من الممكن الوصول إلى مجلد مشترك من ماكنتوش تسير على نفس الآلة. I tried it but it didn’t work. حاولت ذلك ولكنه لم ينجح.
I tried this, and cannot log in (from my windows machine) via my ubuntu username. حاولت هذه ، ولا استطيع الدخول في (آلة من نافذتي) عن طريق اسم المستخدم بلدي أوبونتو. (which is “aamir”). (الذي هو "عامر"). I can see the PC in “My Network Places”. أستطيع أن أرى جهاز كمبيوتر في "مواضع شبكة الاتصال".
Please assist! الرجاء مساعدة!
I tried the same approach as the one listed here but, under OS X (10.3.9), after I enter the Ubuntu admin username and password I get an error which says Can not connect as the username or password is incorrect. حاولت نفس النهج واحدة قائمة ولكن هنا ، في إطار نظام التشغيل العاشر (10.3.9) ، بعد ان ادخل أوبونتو الادارية اسم المستخدم وكلمة المرور أحصل على خطأ التي تقول ما لا يمكن ربط اسم المستخدم أو كلمة المرور غير صحيح.
I have attempted to connect from Ubuntu to the mac and that way works but not from the mac to Ubuntu. لقد حاولت ربط من أوبونتو لجنة الهدنة العسكرية والطريقة التي يعمل ولكن ليس من لجنة الهدنة العسكرية لأوبونتو. Any ideas? أي أفكار؟
To connect to your shared Linux folder on a Windows machine, enter sudo smbpasswd -a (username) in terminal and set your SMB password. لربط لينكس الخاص بك المشتركة مجلد على آلة ويندوز ، اكتب sudo smbpasswd بين (أ) (اسم المستخدم) في محطة ومجموعة الشركات الصغيرة والمتوسطة كلمة السر الخاصة بك.
Hi مرحبا
It seems that you also need to add a samba user : ويبدو أن لك تحتاج أيضا إلى إضافة سامبا المستخدم :
sudo smbpasswd -a usernamen sudo - smbpasswd أ usernamen
After that started to work with my installation بعد أن بدأت العمل مع تركيب بلدي
Please include that we also need to add the user as a samba user using the command into the main article… I thought I had done something wrong until I scrolled down to see the comments الرجاء أن تشمل ونحن بحاجة أيضا إلى إضافة المستخدم بوصفها سامبا المستخدم باستخدام القيادة الرئيسية في المادة... كنت أعتقد أنني ارتكبت خطأ ما حتى أنا انظر إلى محرك تعليقات
Thanks for the article. شكرا لهذه المادة.
Excellent support article here. دعم الممتاز المادة هنا. I have only been using Ubunta for couple of days and I love it. لقد تم استخدام Ubunta فقط ليومين واحبها. My feelings for Windows XP and Vista are moving more and more towards Ubunta. مشاعري لويندوز إكس بي وفيستا تتحرك أكثر وأكثر نحو Ubunta.
Thank you for your help. شكرا على مساعدتك.
Lee Farris فارس لي
yeah… another one that was stumped until the comments about adding the samba password… نعم... أن كان آخر واحد حتى متعكز التعليقات عن سامبا واضاف ان كلمة السر...
now it works great! يعمل الآن كبير!
Great article, although you’re missing half the equation. المادة العظمى ، وإن كنت في عداد المفقودين نصف المعادلة. You need to add a user as several people have mentioned before you’re tutorial can work. أنت في حاجة لإضافة مستخدم العديد من الاشخاص كما ذكرت من قبل أنك يمكن عمل تعليمي. (and a possible samba restart? - I just did it just in case) (واحتمال استئناف سامبا؟ -- فعلت ذلك فقط في حالة)
sudo /etc/init.d/samba restart sudo / الخ / init.d / سامبا استئناف
Peter - yeah I really do have to update this. بيتر -- نعم أنا حقا لا يكون لهذا التحديث. The samba user step I forgot as it had already been created. سامبا المستخدم خطوة نسيت أنها قد أنشئت بالفعل. Thanks! شكرا!
And what should i do if i want Windows users to connect to my shared files without entering any password? وماذا علي أن أفعل إذا أريد لمستخدمي ويندوز لربط بلادي تقاسم الملفات دون أي تدخل كلمة السر؟
Thanks for the guide- I’ve been trying to work out if it is possible to share files in Ubuntu all morning and finally found this page. شكرا لمرشد لقد كنت تحاول العمل إذا كان من الممكن لمشاركة الملفات في أوبونتو كل صباح وأخيرا وجدت هذه الصفحة.
I right clicked on a file on this computer and installed both services, then chose SMB because NFS asked me about IP addresses, network name which I don’t know off hand. أنا الحق النقر على الملف على هذا الكمبيوتر وتركيب الخدمات على حد سواء ، ثم اختار الشركات الصغيرة والمتوسطة بسبب نظام ملف الشبكة سألني عن عناوين بروتوكول الإنترنت ، شبكة اسم التي لا أعرف من ناحية قبالة.
My other computer asked me for a password for MSHOME but did not recognise my Ubuntu password. بلدي أخرى الحاسوب طلب مني كلمة المرور لMSHOME لكنها لم تعترف بلدي أوبونتو كلمة السر.
Tried sudo smbpasswd -a usernamen as above with no success. حاول sudo - smbpasswd أ usernamen كما هو وارد أعلاه مع أي نجاح.
Then went through the same process on my other computer and found I could access the shared folder with no problem from this computer. ثم توجه من خلال نفس العملية على بلدي الحاسوب وغيرها من العثور على أستطع الوصول إلى مجلد مشترك مع أي مشكلة من هذا الكمبيوتر.
I checked permissions/folder access on the shared folders on both computers and found one set to ‘access files’ and the other to ‘none’. التحقق من أذونات الأول / مجلد الحصول على المجلدات المشتركة على كل من أجهزة الكمبيوتر والعثور على مجموعة واحدة إلى وصول ملفات 'وأخرى' لا شيء '. (These were the default settings- don’t know why they were different.) (وهذه هي الإعدادات الافتراضية - لا اعرف لماذا كانت مختلفة.)
I was then able to see the shared folder on the other computer without being asked for a password. ثم كنت قادرا على رؤية مجلد مشترك من جهة أخرى حاسوب دون طلب لكلمة السر.
Under what circumstances is it necessary to set up a samba password? تحت أي ظروف هو أنه من الضروري تشكيل لسامبا كلمة السر؟
I think file sharing in both directions is working now, even though I haven’t gone through the password process on this computer. وأعتقد أن ملف تقاسم في كلا الاتجاهين هو العمل الآن ، على الرغم من انني لم تسر من خلال عملية كلمة المرور على هذا الكمبيوتر.
If possible could you include an idiots guide as to the relative merits of SMB and NFS (and indeed, what they are). إذا كان ذلك ممكنا هل يمكن أن تشمل البلهاء الدليل إلى المزايا النسبية لنظام ملف الشبكة والشركات الصغيرة والمتوسطة (وبالفعل ، ما هي).
Is there any reason to use NFS when SMB seems to be far easier to set up? هل هناك أي سبب لاستخدام نظام ملف الشبكة عند الشركات الصغيرة والمتوسطة ويبدو أن من الأسهل بكثير لاقامة؟
Again, many thanks! مرة أخرى ، شكرا جزيلا!
While I should have known better, the ’smbpasswd’ step had me stumped. وفي حين أن الأول ينبغي أن يكون على علم أفضل ، 'smbpasswd' خطوة كان لي متعكز. Thanks for the kick in the right direction. شكرا لركلة في الاتجاه الصحيح.
how do you connect to your shared folder ? كيف يمكنك ربط الى حسابك في مجلد مشترك؟
How do you setup a shared folder that allows anonomous windows users. كيف الإعداد مجلد مشترك anonomous النوافذ التي تسمح للمستخدمين. I would like to create an “In Box” folder and share it to my entire network so users can grab files from it or place files in it. وأود أن خلق "في المربع" مجلد وحصة لأنها بلدي كامل حتى يمكن لمستخدمي شبكة انتزاع الملفات منه أو مكان في ملفات.
In a network of hundreds of users putting a username and password for each user will not work. في شبكة من مئات المستخدمين لوضع اسم المستخدم وكلمة المرور لكل مستخدم لن العمل.
same here: نفسه هنا :
sudo smbpasswd -a usernamen sudo - smbpasswd أ usernamen
fixed it for me, wasted a couple of hours today trying to get it working لأنها ثابتة لي ، واهدر بضع ساعات اليوم يحاول الحصول عليها العمل
thanks! شكرا!
gosh, i went through the smbpasswd thingy too. يا الهي ، لقد ذهبت من خلال smbpasswd thingy جدا.
and as a newbie, it took me 3 days befor i found this page… dang! ونتيجة لمبتدئ ، استغرق الأمر 3 أيام befor لقد وجدت هذه الصفحة... دانغ!
thanks a ton, soup on Jun 12, 2007 بفضل من نصف طن ، على حساء يونيو 12 ، 2007
thanks a lot! وبفضل الكثير! this worked for me! لهذا عملت لي!
when i try to let ubuntu install the services for the first time, i get no choice regarding the protocols. عندما أحاول تثبيت أوبونتو اسمحوا الخدمات لأول مرة ، أحصل على أي خيار فيما يتعلق البروتوكولات. hardy just installs samba, but not nfs…what’s wrong here? هاردي فقط تثبيت سامبا ، ولكن ليس نظام ملف الشبكة... ما الخطأ هنا؟
I’m running two computers with Ubuntu and I tried all of this and I still don’t see anything when I go to Places–> Network. أنا تشغيل جهازي كمبيوتر مع أوبونتو وحاولت كل هذا ومازلت لا أرى أي شيء عندما أذهب إلى أماكن -> الشبكة. Do I need to change settings on my router? هل أنا بحاجة إلى تغيير إعدادات جهاز التوجيه على بلدي؟
Well hardy heron ubuntu I did most of the above including the smbpasswd stuff. هاردي هيرون أوبونتو حسنا فعلت أكثر من أعلاه بما smbpasswd الاشياء. The process was similar but not exact. وكانت عملية مماثلة ولكن ليس بالضبط. On my simple Xubuntu machine sharing right click sharing is not an option. على بلدي بسيطة Xubuntu آلة تقاسم حق انقر على تقاسم ليس خيارا. On win98 net neighbourhood there is no singn of Ubuntu. win98 على حي الصافية لا يوجد أي singn من أوبونتو. Any suggestions? أية اقتراحات؟ Ian إيان
I get أحصل
‘net usershare’ returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. الصافي usershare 'عاد خطأ 255 : صافي usershare : لا نستطيع فتح usershare دليل / فار / ليب / سامبا / usershares. Error Permission denied خطأ تم رفض الإذن
You do not have permission to create a usershare. ليس لديك إذن لخلق usershare. Ask your administrator to grant you permissions to create a share. اسأل مدير البرنامج لمنح الاذونات ولكم لخلق حصة.
When I try to share the folder. عندما أحاول حصة المجلد.
Thanks شكرا
I also get the error, وأود أيضا أن الحصول على هذا الخطأ ،
“net usrshare returned error 255″ when I try to create a shared folder in ubuntu Hardy heron. "الصافي usrshare عاد 255 خطأ" عندما أحاول إنشاء مجلد مشترك في أوبونتو هاردي هيرون.
Thanks!!! شكرا! I have one lonely *nix machine on a windows domain - I appreciated this. لقد عارض واحد وحيدا * على آلة النوافذ المجال -- أنا أقدر ذلك.
Something is missing from the instructions. ما هو مفقود من تعليمات. Here is what I get: هنا هو ما أحصل على :
‘net usershare’ returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. الصافي usershare 'عاد خطأ 255 : صافي usershare : لا نستطيع فتح usershare دليل / فار / ليب / سامبا / usershares. Error Permission denied خطأ تم رفض الإذن
You do not have permission to create a usershare. ليس لديك إذن لخلق usershare. Ask your administrator to grant you permissions to create a share. اسأل مدير البرنامج لمنح الاذونات ولكم لخلق حصة.
I am also installing on hardy and running into this problem: وأنا أيضا على تركيب وتشغيل هاردى إلى هذه المشكلة :
‘net usershare’ returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. الصافي usershare 'عاد خطأ 255 : صافي usershare : لا نستطيع فتح usershare دليل / فار / ليب / سامبا / usershares. Error Permission denied خطأ تم رفض الإذن
You do not have permission to create a usershare. ليس لديك إذن لخلق usershare. Ask your administrator to grant you permissions to create a share. اسأل مدير البرنامج لمنح الاذونات ولكم لخلق حصة.
any ideas there? هناك أي أفكار؟
ok here is the hardy fix: حسنا هنا هو تحديد هاردي :
I selected to install samba (file server) when i installed hardy server edition-this is ok. اخترتها لتثبيت سامبا (ملف الخادم) وعندما ركبت هاردي الخادم بين هذه الطبعة على ما يرام.
when i got the desktop installed i tried to right click in nautilus (file explorer) and share the file and I got the previous error (net usershare 255). وعندما وصلت سطح المكتب تركيب حاولت انقر فوق الحق في نوتيلوس (ملف اكسبلورر) وتقاسم الملف وحصلت السابقة خطأ (صافي usershare 255).
to fix it i went to system ->administration -> users and groups. لاصلاحها ذهبت الى نظام --> الادارة --> المستخدمين والمجموعات. then unlock (enter password) then manage groups. ثم فتح (أدخل كلمة المرور) ثم إدارة المجموعات. choose sambashare then properties. sambashare ثم اختيار الممتلكات. select your name hit ok, close, close. اختر اسم ضرب موافق ، وثيقة ، وثيقة.
Then logout and log back in and then right click and try to share the directory. ثم سجل خروج وعودة في وثم انقر فوق الحق ومحاولة لحصة الدليل.
For some reason in hardy samba doesn’t add you to the sambashare group. لسبب ما في هاردي سامبا لا يضيف إلى sambashare لكم مجموعة.
I didn’t do any of that sambashare stuff! انني لم افعل أي من الاشياء التي sambashare! I just followed what Brad said and it worked for me. أنا فقط أعقب على ما قال براد وعملت بالنسبة لي.
“to fix it i went to system ->administration -> users and groups. "لتثبيت أنها ذهبت إلى النظام --> الادارة --> المستخدمين والمجموعات. then unlock (enter password) then manage groups. ثم فتح (أدخل كلمة المرور) ثم إدارة المجموعات. choose sambashare then properties. sambashare ثم اختيار الممتلكات. select your name hit ok, close, close. اختر اسم ضرب موافق ، وثيقة ، وثيقة.
Then logout and log back in and then right click and try to share the directory. ثم سجل خروج وعودة في وثم انقر فوق الحق ومحاولة لحصة الدليل. ” "
Thanks for the help. شكرا للمساعدة. When I tried the first fix in the command line thing, it always said cannot modify password, so I gave up and tried Brad’s sollution, and voila, it worked! وحين حاولت ان اول اصلاح في قيادة خط الشيء ، وقال انها دائما لا يمكن تعديل كلمة المرور ، لذلك تخلى وحاول براد 'ssollution ، وvoila ، عملت!
Great howto THX العظمى howto THX
Well, I followed all of these instructions and I’m still getting the error. حسنا ، اتبعت كل من هذه التعليمات وأنا لا يزال الحصول على خطأ. Is there a specific folder I should be using to create these shares? هل هناك مجلد محددة وأرجو أن تستخدم لخلق هذه الأسهم؟
Leave a Comment ترك التعليق