LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-01-2010, 11:45 PM   #1
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Rep: Reputation: 43
Question I want to access a shared folder on a Win 7 computer


I have two computers running for daily use.
One is called 'server' and it is powered by Ubuntu 10.04.
The other one is called 'workstation' and it runs on Windows 7 professional.
On workstation I have created a folder 'Share', which I made shared for 'everybody'.
Also I have installed smbclient and smbfs.
With the Google I found this link:
http://www.howtogeek.com/wiki/Mount_..._Prerequisites
But there are errors on that page that have undermined my confidence.
How do I access this shared folder?
 
Old 11-01-2010, 11:54 PM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Suppose share directory name is data on windows 7 then do

Code:
sudo mkdir /mnt/data
Code:
sudo mount -t cifs //192.168.1.2/data /mnt/data/ -o Administrator
here 192.168.1.2 is windows 7 workstation.(in your example)
 
1 members found this post helpful.
Old 11-02-2010, 02:36 AM   #3
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Original Poster
Rep: Reputation: 43
It worked great. Thank you. But now a new problem shows up.
I can access the share on workstation with Nautilus and I can download files and folders from the workstation.
But uploading files and folders to the workstation is only possible when I am root.
The shared folder on workstation is writeable.
So I tried to change the owner/permissions of the share folder on the server in a root shell, but it says: permission denied.
I want to upload files and folders to the workstation as a user.
But how?
 
Old 11-02-2010, 12:12 PM   #4
Sjonnie48
Member
 
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Original Poster
Rep: Reputation: 43
Answering my own question:
Code:
sudo mount -t cifs //192.168.1.2/data /mnt/data/ -o Administrator,uid=<uid>
So, to enable writing as a non-root user add your uid.
 
  


Reply

Tags
share, windows7



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
I can see SAMBA shared folder in XP but can't access it vishivishi Linux - Networking 6 08-30-2006 01:13 AM
how to open the shared folder of linux in win xp ? linuxmubarak Linux - Networking 3 07-22-2006 06:40 AM
Can Linux still access shared folder in a domain? Micro420 Linux - Networking 3 03-26-2006 06:00 AM
how to access a shared folder on a windows machine learnfast Linux - Newbie 11 03-12-2005 01:50 AM
I see shared win folder, but wont ask to authenticate dna3e8 Linux - Newbie 0 11-19-2004 08:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration