Samba Permissions


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Samba Permissions
# 1  
Old 06-12-2007
Samba Permissions

Hi Gurus,

Need one help.

I have a sun server which is also have a samba service running.Now i have given access to the users to some particular web application folders in my unix.
My web application is controlled by a Web application user account in my unix. But when a user creates a folder using samba mapping the ownership of the file is created as the user id.
but i want the ownership should be as application account. How do i acheive that.
# 2  
Old 06-13-2007
Add this to your share :

force user = user_account_name
force group = group_account_name

Restart Samba.
# 3  
Old 06-13-2007
Hey,

Thanks for your reply. I dont understand you. Where you want to add this.

you mean i have to run as a command?
# 4  
Old 06-13-2007
Not very sure but this should go inside the smb.conf file.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

2. UNIX for Dummies Questions & Answers

SAMBA

currently, we are using SAMBA for our ftp way. can SAMBA be encrypted aka sftp ? (2 Replies)
Discussion started by: lawsongeek
2 Replies

3. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

4. UNIX for Dummies Questions & Answers

Samba permissions

I'm in the process of setting up a Ubuntu based samba server to replaces our current windows file server. I have everything properly configured including having the server authenticating with AD but im having trouble setting up permission on a folder to mimic our current windows setup. From a... (1 Reply)
Discussion started by: binary-ninja
1 Replies

5. HP-UX

To give the "unzip" permissions & "create" file permissions

Hi, I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory. Thanks in advance. Mike (3 Replies)
Discussion started by: Mike1234
3 Replies

6. UNIX for Dummies Questions & Answers

Samba help

Hey. I have a question about adding users and maping theirs dirictorys. Main Folder | -User1 Folder -User2 Folder -User3 Folder ...... How can I add this users to have folders in the Main Folder ? any simple script? And I... (0 Replies)
Discussion started by: net555
0 Replies

7. UNIX for Advanced & Expert Users

Unix directory permissions for Samba

Hi, I've installed Samba on an AIX machine and configured smb.conf to have a bunch of shares available to Windows. I can see the shares, but I couldn't access them. After about 30 minutes of chmod'ding if finally got access by doing the following to the directories I shared: chmod -R... (2 Replies)
Discussion started by: szahir1
2 Replies
Login or Register to Ask a Question