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 07-21-2005, 09:58 AM   #1
MountainSurf
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
Create Folder Error Fedora Samba WindowsXP


I can create a new folder in Windows accessing the Samba share /tmp just fine but when I try to create a new folder in another directory that is shared such as /usr I recieve the following error.

[2005/07/21 08:45:08, 3] smbd/process.c:switch_message(886)
switch message SMBntcreateX (pid 5585) conn 0x9fafe58
[2005/07/21 08:45:08, 4] smbd/uid.c:change_to_user(194)
change_to_user: Skipping user change - already user
[2005/07/21 08:45:08, 5] smbd/filename.c:unix_convert(108)
unix_convert called on file "New Folder (2)"
[2005/07/21 08:45:08, 5] smbd/filename.c:unix_convert(175)
unix_convert begin: name = New Folder (2), dirpath = , start = New Folder (2)
[2005/07/21 08:45:08, 5] smbd/filename.c:unix_convert(324)
New file New Folder (2)
[2005/07/21 08:45:08, 5] smbd/files.c:file_new(129)
allocated file structure 7691, fnum = 11787 (2 used)
[2005/07/21 08:45:08, 3] smbd/dosmode.c:unix_mode(111)
unix_mode(New Folder (2)) returning 0755
[2005/07/21 08:45:08, 2] smbd/open.cpen_directory(1613)
open_directory: unable to create New Folder (2). Error was Permission denied
[2005/07/21 08:45:08, 5] smbd/files.c:file_free(439)
freed files structure 11787 (1 used)
[2005/07/21 08:45:08, 3] smbd/error.c:error_packet(105)
error string = Permission denied
[2005/07/21 08:45:08, 3] smbd/error.c:error_packet(129)
error packet at smbd/trans2.c(2200) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
[2005/07/21 08:45:08, 5] lib/util.c:show_msg(486)
[2005/07/21 08:45:08, 5] lib/util.c:show_msg(496)

I have set permissions on the directory /usr to chmod 777 .

Any insight would be much appreciated.
 
Old 07-21-2005, 11:18 AM   #2
deviance99
Member
 
Registered: Jun 2004
Location: Mount Pleasant, MI
Posts: 41

Rep: Reputation: 16
Did you add users to samba that can read,write that directory?

- I mention this because you MUST MANUALLY add the samba user to the system. For example, you add a user named hoggle using useradd hoggle on your system. To allow them to use samba, you issue:
#>smbpasswd -a hoggle

This should then prompt you to enter a password for the user hoggle, this NOT the passwd password will be used to login into the Samba shares.

Now, if you go to your windows box, and login with hoggle, you will be able to access the samba shares that you allowed hoggle to read.

To add a share, let's call it share you add this onto your /etc/smb.conf file:

[share]
path = /data/share
browseable = yes
write list = hoggle

With this above example, anyone who can login to samba can browse (or read) the share. The path of the share on the Linux box is /data/share, and hoggle has permission to write to the directory, now you must restart the samba daemon before you can actually see the share from inside of windows.

If you wanted to call it felix, you can, just change where it says [share] and make it [felix], like:
[felix]
path = /data/share
browseable = yes
write list = hoggle

note: now the folder in windows under the Linux box will be named felix, before it was named share.

To restart your samba daemon:
(/etc/init.d/samba restart) -- at least in debian it is, if all else fails, rebooting the system will restart the daemon

You should be able to login with the user hoggle via a windows box to the shares on the Linux box! With the above example.

Hope this helps.
 
Old 07-21-2005, 04:22 PM   #3
MountainSurf
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Samba permission Error

Thank you for your response.

I have created a new system user checked the .passwd file and group file to make sure then added the user smbpasswd -a username . I am able to log into the samba machine through windows and see my /tmp and /test directories. I can create a new folder in /tmp but not it /test (permission denied).

Very strange I can create a folder in /tmp but not in /test

I have included my error file and the smb.conf file, and permissions for /test

Error file:

[2005/07/21 08:45:08, 3] smbd/process.c:switch_message(886)
switch message SMBntcreateX (pid 5585) conn 0x9fafe58
[2005/07/21 08:45:08, 4] smbd/uid.c:change_to_user(194)
change_to_user: Skipping user change - already user
[2005/07/21 08:45:08, 5] smbd/filename.c:unix_convert(108)
unix_convert called on file "New Folder (2)"
[2005/07/21 08:45:08, 5] smbd/filename.c:unix_convert(175)
unix_convert begin: name = New Folder (2), dirpath = , start = New Folder (2)
[2005/07/21 08:45:08, 5] smbd/filename.c:unix_convert(324)
New file New Folder (2)
[2005/07/21 08:45:08, 5] smbd/files.c:file_new(129)
allocated file structure 7691, fnum = 11787 (2 used)
[2005/07/21 08:45:08, 3] smbd/dosmode.c:unix_mode(111)
unix_mode(New Folder (2)) returning 0755
[2005/07/21 08:45:08, 2] smbd/open.cpen_directory(1613)
open_directory: unable to create New Folder (2). Error was Permission denied
[2005/07/21 08:45:08, 5] smbd/files.c:file_free(439)
freed files structure 11787 (1 used)
[2005/07/21 08:45:08, 3] smbd/error.c:error_packet(105)
error string = Permission denied
[2005/07/21 08:45:08, 3] smbd/error.c:error_packet(129)
error packet at smbd/trans2.c(2200) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
[2005/07/21 08:45:08, 5] lib/util.c:show_msg(486)
[2005/07/21 08:45:08, 5] lib/util.c:show_msg(496)

smb.conf

# Global parameters
[global]
workgroup = SATCO
server string = dev2
log level = 5
security = user
log file = /tmp/samba.log

[tmp]
path = /tmp
read only = No
guest ok = Yes

[usr]

path = /usr
read only = No
guest ok = Yes
write list = kyle


[test]

path = /test
read only = No
guest ok = Yes
write list = kyle


Permissions for /usr:
 
Old 07-21-2005, 04:27 PM   #4
MountainSurf
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Samba Create Folder Error

The permissions for the /usr folder is :

drwxrwxrwx 15 root root 4096 Jul 20 16:57 .
drwxr-xr-x 24 root root 4096 Jul 21 10:47 ..

The permissions for the /test directory is :


drwxrwxrwx 7 kyle root 4096 Jul 21 15:03 .
drwxr-xr-x 24 root root 4096 Jul 21 10:47 ..

When I add the following lines to smb.conf

directory mask = 0777

Still have same error creating folder in /test from Windows.

Thank you kindly for your insight.
 
  


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
starting script, init by copy/create file in (samba) folder? muab Linux - General 7 06-22-2005 06:02 PM
Fedora Core 3 WindowsXP and Samba NomadABC Linux - Networking 61 01-28-2005 02:02 PM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM
WindowsXP cant see samba. HELP ME! ratbert90 Linux - Networking 15 06-03-2003 01:33 PM
Create new folder error! Rex_chaos General 3 10-05-2001 02:38 PM

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

All times are GMT -5. The time now is 10:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration