LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-18-2010, 04:37 AM   #1
salimshahzad
Member
 
Registered: Dec 2009
Posts: 200

Rep: Reputation: 15
permission mess * asterick add to each file under /oracle


dear sir

i give oracle permission to folder this way

[root@srvr1 ~]# chown -R oracleinstall /oracle/*
[root@srvr1 ~]# chmod -R 775 /oracle/*

so what it did each every file, it attached filename* (asteric * in last)

now each file shown under /oracle directory looks with *

can someone give me solution to avoid this

or return back

regards
 
Old 10-18-2010, 04:42 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Executable permissions have been given to all files and directories under /oracle, so it is normal that every file is marked like that. The reason is that most likely the ls command for root is aliased to something containing option -F (please see man ls for details). If this is the case you can simply change the alias to avoid the marks, however I feel like changing permissions like that is not a good idea: you don't really need every file in a database to be executable, don't you?!
 
1 members found this post helpful.
Old 10-18-2010, 04:48 AM   #3
salimshahzad
Member
 
Registered: Dec 2009
Posts: 200

Original Poster
Rep: Reputation: 15
no i am afraid as i did this by mistake and expected result was not there...

since some folder i copy from window machine to /oracle folder where i used root user via winscp

then i give bulk permission oracle user to take control like scripts, database, and oracle related files. when i notice is shown asterick with every file attached.

even when i try mv filename*.sh filename.sh, it give me error says same file

plz give me more idea explanation of this highly apprecaited
regards
 
Old 10-19-2010, 03:06 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Well... the asterisks should not really be part of the file names. They will be shown from the ls command if the -F option is in action and the files have the executable permission. To confirm, please show us some lines of the output from:
Code:
ls -l /oracle/*
followed by the same lines from the following:
Code:
\ls -l /oracle/*
as you can see, the second command is the same, except for the backslash in front of ls: this forces the command to be executed without aliases (that is a plain ls without colors or other stuff).

An historical note: the -F option of the ls command was really useful when terminals were "black & white": the only way to distinguish files from directories at a first sight using a plain ls was by means of a symbol appended at the end of the file/directory name. Hence you see a slash for directories, an asterisk for executable files, a @ for links, and so on. This symbol is only the result (output) of ls and it doesn't affect the real name of the files.

Now let's see if this is actually your issue, looking at the output of the suggested commands.
 
  


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
LXer: The Oracle-Google Mess: A Question - Are Any of the Patents Tied to a Specific Machine? LXer Syndicated Linux News 0 08-13-2010 09:40 PM
LXer: Memo to Oracle: Don't Mess Up Java LXer Syndicated Linux News 0 01-27-2010 12:41 AM
what is the default permission and ownership of /var/tmp/.oracle RMLinux Linux - Newbie 2 11-27-2008 07:23 PM
cron/oracle: Permission denied rana_abdulwahid Linux - Newbie 2 04-28-2008 05:00 AM
My apt sources.list file his mess up! NeeD_ResT Debian 3 11-20-2004 10:47 AM

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

All times are GMT -5. The time now is 05:28 PM.

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