LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-02-2006, 11:43 PM   #1
nikhil_rs_maheshwari
LQ Newbie
 
Registered: Feb 2006
Posts: 11
Blog Entries: 1

Rep: Reputation: 0
problem whild finding files


hi

actually i m novice in Unix environment & i do have Sun OS 5.8 .

When i fire command like " find . -prem a=rwx " or any other find command with differnt option i get error like


command : find . -prem a=rwx
------

Error:
------
find: bad option -prem
find: path-list predicate-list


Plz help

Thanx well in advance
 
Old 03-02-2006, 11:46 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
a typo: prem vs perm.
 
Old 03-04-2006, 08:19 PM   #3
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
try find . -perm 777
 
Old 03-05-2006, 01:53 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Javier, wasn't my reply clear enough ?
 
Old 03-12-2006, 03:31 PM   #5
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
just gave him an alternative so now he knows how to do it using the numbering scheme
 
Old 03-12-2006, 03:48 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Ok, the issue wasn't with the permission string but with a mistyped option.
Also, you should use a properly built octal number: 0777, 777 works, but is poor.
 
Old 03-16-2006, 07:04 PM   #7
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
Hi there:

There is nothing wrong with typing 777. As a matter of fact I double check with my solaris book (from the sa-100 book printed by sun) and their examples use 3 digits. There is no need to
use the forth digit since i am not looking for anything with
a sticky bit (1 in front of the permissions), setuid (4) and/or setgid (2). So if it works, it's fine. May not be proper but it is correct and not poor.

Second, although I assumed that he had a typo (also had one while he opened this thread), I just wanted to show him (not you) another way to do so. I did not say you were wrong, so don't get defensive Don't forget that he was asking for help
and this is not a forum where we are not allowed to express
our ideas/opinions.
 
Old 03-17-2006, 12:39 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I didn't wrote it is wrong or incorrect, just poor.

The octal syntax is the original one, the symbolic syntax was an enhancement, you are suggesting a more confusing form to a newbie.

In C, the Unix reference language, an octal number is expressed by a leading 0, keeping this convention elsewhere is a good idea, not doing it is lazy.

Just expressing my opinion
 
  


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
Finding files via their size ivanatora Linux - General 1 09-08-2004 08:23 AM
finding files in C++ poeta_boy Programming 2 07-11-2004 01:25 AM
Finding files brentos Linux - General 3 03-22-2004 08:24 PM
Problem with finding files andyfailes Linux - Newbie 2 10-28-2003 01:59 PM
Finding files Nicksan Linux - Software 3 06-30-2003 07:16 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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