LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-15-2004, 11:39 AM   #1
Steve1445
LQ Newbie
 
Registered: Jan 2004
Location: Charleston, SC
Distribution: Redhat 9.0
Posts: 15

Rep: Reputation: 0
Question File, Folder permission and SAMBA


Without using ACL (I have Samba passwd configured) and bringing in folders from an NT box does anyone know of a way (without doing each folder and then the contents of the folder) to change the permissions.

If you only have a few folders deep it's not really an issue but once your folders are nested many times over with hundreds of files it's beyond my patience to follow them all out.

I have read that you can change the permission if you access the share from windows as root, but after creating a root user in the NT domain and then accessing the share and simply trying to change the permissions and read only status, it seems to take. But when I reopen it, the permissions and read only have not been saved.

Additionally, I have made entries on the share entry in smb.conf for create mask, directory mask, force create mask, etc. But these seem not to have any effect either. Thanks in advance.
 
Old 01-15-2004, 01:05 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Do you mean that you want to set permissions on exisitng files? Try running:
chown -R user:group /path/to/dir
chmod -R 644 /path/to/dir

Obviously change the values as appropriate.
 
Old 01-15-2004, 02:13 PM   #3
Steve1445
LQ Newbie
 
Registered: Jan 2004
Location: Charleston, SC
Distribution: Redhat 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
Thumbs up

You Sir are a Saint! I have been banging my head against the wall trying to figure out how with one or two keystrokes to change the ownership and permissions. Thank you! v
 
  


Reply



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
In samba no permission to see shared file ALInux Linux - Software 1 04-22-2005 07:26 AM
Samba Server - File permission SBFree Linux - Newbie 3 11-23-2004 05:52 AM
Apply permission on samba shared folder on M$ Windows 2000 vwhk Linux - General 4 07-20-2003 09:53 PM
SAMBA File Permission vcheah Linux - Software 1 11-27-2002 11:29 AM

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

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