LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2008, 09:22 AM   #1
cliffsur
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Rep: Reputation: 0
Ubuntu 8.04 in windows network cannot get write access for all samba shares


Using Webmin. I have set up some users, a share directory and some folders. using my own login, I can access the shares and read and write to all the folders. However if I log on to a terminal as one of the other users, I can see the shared folders, I can open files contained in the shares and can read them, but I cannot add new files nor change data.
I cannot see any differences between the one user that works and the others that do not.
Not sure what files I should attach to this.
Thanks

Cliff
 
Old 09-18-2008, 09:27 AM   #2
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
What are the permissions on the directory and who owns it?
Code:
ls -l <directory that holds the shared directory>
Post the above output with any personal/private entries removed.
 
Old 09-18-2008, 09:59 AM   #3
cliffsur
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Hi CRC.
I am very much the noob, but I think this is the directory you mean

> ls -l /QA
total 32
drwxr-xr-x 2 cliff cliff 4096 2008-09-10 16:58 New Folder
-rwxr--r-- 1 cliff cliff 19968 2008-09-18 12:49 New Microsoft Word Document.doc
drwxrwxrwx 2 cliff cliff 4096 2008-09-18 12:17 PCDBDev
drwxr-xr-x 2 cliff cliff 4096 2008-09-18 12:49 testfolder

There is just one shared directory called /QA with contents as shown above

Cliff
 
Old 09-18-2008, 10:17 AM   #4
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
Also please do an 'ls -l /' and post the entry for your QA share. I would like to see what the permissions on the directory containing that files/folders you posted above.

It looks like the problem is a permissions issue. Read this article for more info on Linux permissions and to understand what I am about to say.

In short, it appears you have made the owner and group of these directories/files 'cliff'. Are the users you're trying to share this to part of group 'cliff'? I'm going to assume not. So first you need to add all the users to the same group and make the group of this directory and files that group (most people use 'users' but you can create a custom one if you want). Secondly, you will need to give the group write permissions on the directory.

'chown' command will hlep with setting group of files/folders
'chmod' command will help with setting permissions on files/folders

Look at the man pages to see how to use them. Good luck
 
Old 09-18-2008, 10:24 AM   #5
cliffsur
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Hi CRC
There was only one line relating to QA

drwxr-xr-x 5 cliff root 4096 2008-09-18 12:49 QA

Thank you. I shall have a read (I have done some reading on Samba file sharing, but still couldn't sort out the groups/users in my head) I had not intentionally assigned everyone to group cliff but will go and have a good look inlight of your reply

Cliff
 
Old 09-18-2008, 12:04 PM   #6
cliffsur
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
CRC Thankyou for your help.
I haven't cracked it yet, but I can see exactly where the write permissions are missing and have been able to change ownership and group settings for the directory through the command line.
The Linux permissions help article is excellent.
I shall look at the octal properties for the samba share. I think it was set to 755, which could be significant.
I'm going QRT on this for a few days, but will pick it up again next week.

Great help

Thanks
Cliff
 
Old 09-18-2008, 12:29 PM   #7
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 32
No problem. Post back here in this thread or start a new one for any future problems. Glad to help!
 
  


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
Can't access Samba shares with wireless network NeoChaosX Linux - Software 2 08-12-2006 01:22 PM
Windows ME cannot write to SAMBA shares apostate Linux - Software 2 07-30-2005 10:56 PM
Can not write to Samba Linux Shares from Windows boyd98 Linux - Software 2 05-12-2005 05:51 PM
Read-Write Access for Network Shares HKDude Linux - Newbie 2 08-06-2004 06:17 PM
Can't access samba shares from windows nuzzy Linux - Software 2 07-17-2002 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:19 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