Solaris 10 - 'ls' green for root user only


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 - 'ls' green for root user only
# 29  
Old 12-30-2014
Quote:
Originally Posted by achenle
Also:
Code:
rm *Desktop*

would have deleted just the bad file and left the Desktop directory alone - rm won't remove directories without the proper options. Or you could just do
Code:
rm *?Desktop?*

and only files with the string "Desktop" and at least one other character before and after would have been deleted.
No.

The command rm *Desktop* would have absolutely no effect on any filename that does not contain the string Desktop. The file that was causing problems in case was named <esc>[32m where <esc> is a visual representation of the ASCII escape character with octal value 033.

This is why ls -l output was important to diagnose the problem. Just using ls -F|od -c produced output that couldn't reliably be used to determine the name of the offending file (other than by knowing that there was a directory named Desktop that sorted immediately after the name of the offending file (and we couldn't see that from the snippet of od output provided by by the OP).
# 30  
Old 12-30-2014
Quote:
Originally Posted by Don Cragun
...
Note that if you had shown us the exact output from ls -F|od -c:
Code:
0000000  033   [   3   2   m  \n   D   e   s   k   t   o   p   /  \n ...

instead of saying you had something like:
Code:
0000000 0 3 3   [   3 2 m   \n   D e s k t o p   /   \n

I wouldn't have needed to scratch my head so many times trying to guess at how to specify a way to name the offending file. The extra spaces in the middle of 033 in the output had me doubting my earlier assumptions (even though they turned out to be correct).
I know, sorry for that but I am not able to copy and paste from that machine. It is completely separated. Thanks one more time. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Root user not recognizing on Solaris-10 (shadow file corruption)

Hello, I got into a wired state on one of solaris 10 server. When I noticed that server is having some issue, I found that there were dumpadm.conf entries in /etc/shadow and real entries were wiped of. Probably somebody fat fingers. I was able to boot into failsafe, break SVM mirror, copied... (25 Replies)
Discussion started by: solaris_1977
25 Replies

2. SuSE

Non root user want to see /var/log/messages - any suse equivalent of Solaris dmesg

Hi New to Suse - mainly used Solaris. In solaris dmesg will also show you contents of messages log file but in Suse Liux it doesnt appear to. I dont have root access to this Suse server, and wondering is there any other tool / utility that allows me to see the messages file contents like on... (1 Reply)
Discussion started by: frustrated1
1 Replies

3. UNIX for Dummies Questions & Answers

Sudo to delegate permission from non-root user to another non-root user

I've been through many threads before i decide to create a separate thread. I can't really find the solution to my (simple) problem. Here's what I'm trying to achieve: As "canar" user I want to run a command, let's say "/opt/ocaml/bin/ocaml" as "duck" user. The only to achieve this is to... (1 Reply)
Discussion started by: canar
1 Replies

4. Solaris

Enable FTP for root user in Solaris 10

I am not able to get ftp working for Solaris 10 for root user. I am getting login failed error. 331 Password required for root. Password: 530 Login incorrect. Login failed. Tried following things already. 1. SFTP works ok, still would like to know why FTP is not working (curious). 2.... (5 Replies)
Discussion started by: webkid
5 Replies

5. UNIX for Dummies Questions & Answers

How to allow access to some commands having root privleges to be run bu non root user

hi i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies

6. Solaris

Non-root user access to privileged ports-Solaris 8

Please let me know how to setup a non-root user to be able to access a privileged port (<1024) on Solaris 8. I am currently running tomcat as "tomcat" user and I get the following error during to start up: SEVERE: Error initializing endpoint java.net.BindException: Permission denied<null>:443 (5 Replies)
Discussion started by: pingmeback
5 Replies

7. Solaris

How to start CDE for non root user on Solaris 10

Hi, How can I start CDE for non root user created.For root CDE is working fine but for non root user CDE exits back to login screen after trying for some time.Also I cant see .dt and .dtprofile files in the users home directory.How can I create them.Kindly help. Thanks & Regards, Kiran. (1 Reply)
Discussion started by: kiranherekar
1 Replies

8. Solaris

Permissions for the root user on Solaris 10

Hi I have a doubt, here if a file does not have the write permissions to the root user my script is going to write the data into that file. when i executed the script as root user. Is it correct ... ? (4 Replies)
Discussion started by: Shreedhar Naik
4 Replies
Login or Register to Ask a Question