LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-31-2006, 07:08 PM   #1
jorge_ivan
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Rep: Reputation: 0
I can not open the user folder in home and write in a shared folder


Hi, I installed fedora 5, I created an user named jorge and a shared folder "LAN" with the permissions for this user, but when I want to acces it in win xp with option RUN with the IP of the server (\\xxx.xxx.xxx.xxx) where fedora was installed, I can see the userīs folder "jorge" and the shared folder "LAN", the problem is that when I want to open the userīs folder I can not. I can open The shared folder "LAN" but I can not write it.
Help please....
 
Old 08-01-2006, 01:47 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,655

Rep: Reputation: Disabled
On what file system is your /home/jorge/LAN? You need extra drivers for ext2/3 on WinXP...
 
Old 08-01-2006, 07:42 AM   #3
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
Quote:
Originally Posted by JZL240I-U
On what file system is your /home/jorge/LAN? You need extra drivers for ext2/3 on WinXP...
Are you sure? I can write on my linux reiserfs partition from winxp using samba and I haven't installed any reiserfs driver.

The problem is with permissions. What I do is login as root from the remote machine so I gain full access to my linux box (What I mean is that when you are trying to access this LAN folder from windows and it asks you username and password, type "root" or "administrator" and give the root password). A more proper solution is to reconfigure samba on your linux box and remove the read-only attribute from LAN. I don't know much about samba, though, so I can't help you more. See the fedora documentation.
 
Old 08-01-2006, 08:19 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,655

Rep: Reputation: Disabled
Quote:
Originally Posted by gkiagia
Are you sure? I can write on my linux reiserfs partition from winxp using samba and I haven't installed any reiserfs driver.
Ooops. You're right, I forgot about that.

Quote:
Originally Posted by gkiagia
... A more proper solution is to reconfigure samba on your linux box and remove the read-only attribute from LAN. ...
That wouldn't need samba, just issue the chmod command on the linux box for /houme/jorge/LAN or does samba set its own attributes? No, I guess it can't really...

Last edited by JZL240I-U; 08-01-2006 at 08:21 AM.
 
Old 08-01-2006, 08:26 AM   #5
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
Quote:
Originally Posted by JZL240I-U
That wouldn't need samba, just issue the chmod command on the linux box for /houme/jorge/LAN or does samba set its own attributes? No, I guess it can't really...
Yes, samba has it's own attributes as well as its own user accounts. Only the root account seems to be common (at least in my configuration).
 
Old 08-01-2006, 08:28 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,655

Rep: Reputation: Disabled
Quote:
Originally Posted by gkiagia
Yes, samba has it's own attributes as well as its own user accounts. Only the root account seems to be common (at least in my configuration).
Huh? Do you know why? What is this feature needed for and how does one duplicate the accounts for entire file systems?

Last edited by JZL240I-U; 08-02-2006 at 01:20 AM.
 
Old 08-01-2006, 11:28 AM   #7
it4soho
LQ Newbie
 
Registered: May 2006
Location: Clearwater, FL
Distribution: Fedora Core 5
Posts: 2

Rep: Reputation: 0
Unhappy Samba Permissions

OK... first of all, Samba does NOT have separate permissions and usernames (what a NIGHTMARE that would be to implement!) Samba DOES (or more corectly, CAN) have a mapping of Windoze permissions to Linux permissions, and also has a username map (so that Linux username 'account123' can be accessed by the Windoze username 'Millie'). If you've enabled it, Samba can even use the Linux ACLs (Access Control Lists -- which let you go beyond the standard User/Group/Other permissions). But when it comes to accessing a file (in a directory that is properly shared), the Linux permissions "rule."

If you are using a Windoze domain or AD server, then Samba can automatically create appropriate usernames using the winbindd daemon (NOTE: winbindd generated names will NOT appear in /etc/passwd, /etc/shadow, or local LDAP user listings, but will appear normally when you use an 'ls -l'! If you don't know how to do this, there are LOTS of Samba HOWTO's to help). If Samba is your Domain Controller, then users have to have an entry in /etc/passwd, /etc/shadow, or LDAP.

Based upon what I've read, however, I'd suspect that the original poster created the user account manually -- which means that the /home/user directory that is being shared in Samba is owned by root, and not the user. As a basic rule of thumb, if the directory shows up on the Windoze client (Windoze XP), but you cannot write to it, then it either has been shared as a read-only share (unlikely to be an accident), or the directory does not have the proper owner/group/permissions settings. The rest of the Samba settings are working if you can see the share from XP!

Just to test my theory, I suggest logging into the Linux server, cd-ing to the shared directory, and then allowing full access (chmod 777 .) [don't forget the dot!] and then trying again from Windoze (fortunately, no reboot necessary -- even for the XP system!)

If this does the trick, then set the ownership of the directory to the user in question (HINT: if you create a file in the shared directory from the Windoze XP client, it will be owned by the Linux User whose access permissions are being used - regardless of any special Samba settings, winbindd, or otherwise. Use 'ls -l' on the server to see who owns the file Windoze XP created!)

Once you've figured it all out, don't forget to use chmod again to remove the excessive permissions! For user home directories, I typically use 'chmod 700 .' For shared directories, I'll use either 770 (if I'm limiting access to a specific group, or 777 (for all to access). In the latter case, I also recommend using the Sticky Bit (1777) so that people cannot so easily delete each others files!

Peace, Love, & Unix!
 
Old 08-02-2006, 01:28 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,655

Rep: Reputation: Disabled
Thank you for this posting it4soho. It is not only nicely detailed but also very easy to understand, even for a non-Samba user .
 
Old 08-02-2006, 11:28 AM   #9
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
Quote:
Originally Posted by it4soho
OK... first of all, Samba does NOT have separate permissions and usernames (what a NIGHTMARE that would be to implement!) Samba DOES (or more corectly, CAN) have a mapping of Windoze permissions to Linux permissions, and also has a username map (so that Linux username 'account123' can be accessed by the Windoze username 'Millie'). If you've enabled it, Samba can even use the Linux ACLs (Access Control Lists -- which let you go beyond the standard User/Group/Other permissions). But when it comes to accessing a file (in a directory that is properly shared), the Linux permissions "rule."
Ok, sorry. I don't know much about samba. This is probably what I meant: mapping.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to open the shared folder of linux in win xp ? linuxmubarak Linux - Networking 3 07-22-2006 06:40 AM
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 06:50 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
Samba problems: can't write to shared folder Nylex Linux - Networking 4 07-19-2005 04:40 PM
Writing to a shared home folder confused_bof Linux - Networking 5 05-18-2004 06:50 AM


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