LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-09-2007, 01:36 PM   #1
combilli
Member
 
Registered: Oct 2006
Posts: 75

Rep: Reputation: 15
Permission problem after migration. Please give some advise


I just help someone to recover a mail server..(the orignal cannot boot.)

I setup another mail server using postifx, using Maildir storing emails in users home folder.

I just copy all the user directory to new server's home directory , recreate account and set owners / groups for each folder.

here is a question..
The orignal permission on all users directory is

drwx------

and inside the directory, the files there are -rw-r--r--
and there is a folder MailDir : drwx------


I've change all dir and sub dir to chmod -R 744
and change all dir to chmod 700


users seems still using mail server now..
but all the files inside after migrate have an "x".

Will there some problems?
 
Old 06-09-2007, 04:04 PM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 306

Rep: Reputation: 37
x means executable. Do 'chmod -R -x *' to remove the executable bit.

This command will traverse the whole tree (-R = recursive) and remove execution bit (-x = remove execute).

IHTH
 
Old 06-10-2007, 01:48 AM   #3
combilli
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 15
All the dir contain an "x" ..
I found that if I remove the "x" for dir, there will be some problem with webmail.
 
Old 06-10-2007, 03:14 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,627
Blog Entries: 10

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
find -type f chmod go-xw {} \;


Cheers,
Tink
 
  


Reply

Tags
chmod, execute


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What Does Each Group Give Permission To? Do7AN Slackware 6 02-14-2007 02:48 AM
Please give me advise for building my first SMTP server. cylix2000 Linux - Server 3 10-09-2006 10:25 PM
Give me some advise about my study,thank you ! naihe2010 Programming 1 11-16-2005 07:40 AM
C++ code,please C++ programer to give me some advise naihe2010 Programming 13 10-17-2005 10:30 AM
I give up / advise on sound card model wprauchholz Linux - Newbie 5 10-23-2004 02:21 AM


All times are GMT -5. The time now is 07:39 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
Open Source Consulting | Domain Registration