Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Permission for particular folder Post 302610559 by satish51392111 on Wednesday 21st of March 2012 12:07:47 PM
Old 03-21-2012
Ok.. will keep that in mind.

---------- Post updated at 11:07 AM ---------- Previous update was at 10:53 AM ----------

1)
Quote:
Originally Posted by methyl
@satish51392111 and what has this to do with this thread?
The guy who started this thread asked how to change the permissions of a directory and its contents recursively. That's what I have done without messing up things.

Quote:
Originally Posted by chakkaravarthy
Hi All,
I want to change a permission 755 only for a folder <log> under the directory recursively /home.
2)
Quote:
Originally Posted by methyl;302610543Omg [icode
chmod -R 777[/icode] . There is never ever a reason to issue this sort of idiot command.

Permissions 777 is a security nightmare. My advice to all reading this thread is don't do it.

If I was your boss, I would remove your admin rights permanently.
Of course I know the ruptures 777 can do.. it was just for illustration for God sake! Nothing 'idiot' in this. You can do a 755 in my code

Bottom-line: UNIX is not only about heavy rounds of shell-scripting.

Last edited by satish51392111; 03-21-2012 at 02:24 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Folder permission denied

Hi, I tried to create a new folder inside a folder A but was given an error "Permission denied". Any idea? (4 Replies)
Discussion started by: trivektor
4 Replies

2. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

3. HP-UX

Folder permission

Hi guys, When I switch my user. I cant go to one of the folders. seems that this user has no right to access the folder. can you please help me to give the right to this user in order for him to access to the folder? it gives me permission denied. (2 Replies)
Discussion started by: messi777
2 Replies

4. HP-UX

Lost Read permission on my folder

Hi I am a normal user on a HP-UX system which is meant for a large group. There are few directories which I think i am owner of. (Name of these directories is same as my username, and I usually have all the permissions in these directories). I was trying to give read and execute... (2 Replies)
Discussion started by: grvs
2 Replies

5. UNIX for Advanced & Expert Users

permission for all the files in a folder

Hi Guys, Is there a command or some way whenever any file is created in a folder is having a default permission. Cheers!!! (2 Replies)
Discussion started by: mac4rfree
2 Replies

6. Shell Programming and Scripting

[Solved] Retrieve all the permission of the /bin folder

hello friends, By mistake I have run find / -type f -exec chmod 644 {} \; now all permission has been chaged of /bin I am not able to change the permission. I am working on the virtuozzo VPS. Is their any way to retrieve the permission to 770 to /bin Note /bin/chmod also not executing... (2 Replies)
Discussion started by: sharlin
2 Replies

7. Solaris

Need to transfer files between 2 UNIX servers, with same folder permission

I need to transfer directories/files between 2 Unix servers, with same folder permission. I tried scp, but it retains the the permissions, but changes the owner of the directory/file to the user used to copy them to the destination. I don't want that to happen. If possible without any other... (6 Replies)
Discussion started by: Pandee
6 Replies

8. UNIX for Dummies Questions & Answers

Folder permission

Hi, I created user1 & user2 on my Linux machine. User2 cannot access home directory of user1. How user2 access the user1 home directory without changing owner of the directory. from root user, i tried chmod 755 /home/user1. But user2 trying to change directory it provides permission denied... (1 Reply)
Discussion started by: mdnowshath
1 Replies

9. Red Hat

Use of Execute permission for folder

Hi All, What is the use of execute permission for a folder. I know "for execute a file(script file) we have to provide execute permission to that respective file".But what is the use to give execute permission to folder.Is it equal to read permission ? Regards, Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies

10. UNIX for Dummies Questions & Answers

Reset Permission Of Files and Folder

Hi, Call me stupid but i accidentally executed following command : find $INSTALLDIR/ -type f -exec chmod 644 {} \; now after which I am not able to run any command in system even ls command is giving me error for "permission denied" :( (5 Replies)
Discussion started by: itajooba
5 Replies
packf(1mh)																packf(1mh)

Name
       packf - compress a folder into a single file

Syntax
       packf [ +folder ] [ msgs ] [ -file name ] [ -help ]

Description
       Each  message in a folder is normally stored as a separate file.  The command takes all messages from the current folder and copies them to
       a single specified file.  Each message in the file is separated by four <CTRL/A>s and a newline.

       You can specify a folder other than the current folder by using the +folder argument.  If you do not want all the messages in a	folder	to
       be packed into one file, you can specify a number of messages or a range of messages with message numbers.

       The first message packed will become the current message.  If you specify a +folder argument, that folder will become the current folder.

       When messages have been packed into a file using you can separate them into individual messages using the command.  See

Options
       -file name
		 Specifies  the  file  in which you want the message(s) to be stored.  If you specify an existing file then the specified messages
		 will be appended to the end of that file.  Otherwise, a new file will be created and the messages placed in it.  If  you  do  not
		 specify  a  filename,	attempts  to  place the messages in a file called in the current working directory.  If this file does not
		 exist, asks whether you want to create it.

       -help	 Prints a list of the valid options to this command.

       The default settings for this command are:

	      +folder defaults to the current folder
	      msgs defaults to all
	      -file ./msgbox

Examples
       The first example shows all the messages in the folder being packed into a file called
       % packf +lrp -file planning

       The next example shows how prompts you if you do not specify a -file option.  A file called is created by in your home directory, and  mes-
       sages 3 to 5 are packed into it:
       % packf +lrp 3-5
       Create file "/machine/disk/username/msgbox"? y

Profile Components
       Path:	      To determine the user's Mail directory
       Msg-Protect:   To set protections when creating a new file

Files
       $HOME/.mh_profile   The user profile.

See Also
       burst(1mh)

																	packf(1mh)
All times are GMT -4. The time now is 09:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy