Pls help. can't do chown ????


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Pls help. can't do chown ????
# 8  
Old 03-21-2014
Quote:
Originally Posted by Neo
Do you have a valid user with username "sybase"?

Please post your /etc/passwd file if not sure.

Moderator's Comments:
Mod Comment Note: You don't need "???" questions marks for your question. One "?" is enough.
Sorry about the question mark. Yes. this server is on NFS but the directory Sybase is local which is connected to EMC disk storage using ZFS.

Code:
 
newd1> cat /etc/passwd |grep sybase
newd1>

---------- Post updated at 10:44 AM ---------- Previous update was at 10:40 AM ----------

Quote:
Originally Posted by Neo
Please check /etc/passwd file for a valid user "sybase" first.. thanks.
This system is on NFS but this directory is local which is connected to EMC storage running ZFS. Sybase is not on local account. It's on the NIS master server.
# 9  
Old 03-21-2014
Since you do not have a valid user "sybase" in /etc/passwd, you are not going to be able to change user to "sybase".

Update: If NFS is operating properly, then of course the statement above is not valid.
# 10  
Old 03-21-2014
If its on NIS, then make sure your account is actually exists on the NIS master server. If it exists, make sure /etc/passwd has sybase entry.

Code:
#getent passwd sybase


Last edited by Scott; 03-21-2014 at 01:15 PM.. Reason: Code tags
This User Gave Thanks to npandith For This Post:
# 11  
Old 03-21-2014
NFS does not care if you're root, being on a different machine -- you're someone else's root, not the root. Whether it'll allow you is down to its configuration.
# 12  
Old 03-21-2014
Quote:
Originally Posted by npandith
If its on NIS, then make sure your account is actually exists on the NIS master server. If it exists, make sure /etc/passwd has sybase entry.

#getent passwd sybase
Code:
newd1> getent passwd sybase
sybase:4zbnZQj405.kQ:4031:50:Sybase User (Shared Account):/home/s/sybase:/usr/local/bin/bash

how do I set the directory to Sybase user. Should I create the user local to this server?

Last edited by Scott; 03-21-2014 at 01:15 PM.. Reason: Code tags
# 13  
Old 03-21-2014
That's up to you, you seemed to want it to be on the NFS.
# 14  
Old 03-21-2014
Quote:
Originally Posted by samnyc
How do I set the directory to Sybase user. Should I create the user local to this server?
As Corona said, that's "up to you"; but as a trouble shooting exercise you could create a local sybase user in local /etc/passwd and see if and how it work; then decide what do to later.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using chown command.

I am working on a test machine. I just discovered that I have misunderstood the way the following command is run. chown -Rv some_user:users /some_folder/*This command do exactly what I want. Change the owner of every things from the named folder and in all child folders. But of course it leave... (13 Replies)
Discussion started by: jcdole
13 Replies

2. Shell Programming and Scripting

chown of a Directory

Hi All, I need your help in changing the owner of a directory. I have a created a direcotry TEST with user "abc"....for the group "ftp". Now i wnated to change the owner of the directory TEST. i used the below command to do so: chown abc:sftp TEST This is giving me an error... (5 Replies)
Discussion started by: ch33ry
5 Replies

3. Solaris

chown

Hello My oracledatabase creats some xmlfiles. this files has the owner hugo. now I've a script (how runs als hugo2) and this script will insert this XMLFile into the database. But that doesn't work, because the owner of the files is wrong, and hugo has not the rights to insert this files into... (3 Replies)
Discussion started by: Street
3 Replies

4. Shell Programming and Scripting

Chown - error

I have a file fin2009_4.txt.gz in the unix ftp server. Owner of the file is: ftpusr. -rw-r--r-- 1 ftpusr sap 0 Feb 19 10:19 fin2009_4.txt.gz When I try to delete this file after copying to my home folder, I am getting the following error. rm: fin2009_4.txt.gz1: override... (4 Replies)
Discussion started by: sid1982
4 Replies

5. Shell Programming and Scripting

cp, chown, untar

hello i want shell script. i have a source.txt /home/user409/public_html/test/ /home/user09876/public_html/xdsss/ /home/user9765/public_html/320xxx/ . . . maybe 1000 lines i want . 1.read a source.txt 2.untar special.tar.gz into these directory in source.txt 3.i want to... (14 Replies)
Discussion started by: topic32428285
14 Replies

6. UNIX for Dummies Questions & Answers

chown

is there a difference in chown on a file or a directory? how do i chown a directory and all the contents? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

7. UNIX for Dummies Questions & Answers

reg chown

hi i wrote a script to run 'C' executable which will create a new file, after that util is completed, i have to change the file ownership to some other user. for that i used "chown" for changing the file permission in Korn script :confused:but it is throwing error is "operation... (2 Replies)
Discussion started by: ilayans
2 Replies

8. UNIX for Dummies Questions & Answers

Chgrp and Chown ???

Hi Can anybody please let me know the usage of Chgrp command with an example??? Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

9. AIX

chown

hello chown not change ownership before: 205:system ~kuku chown kuku:system ~kuku after no change 205:system ~kuku aix box can someone help me? ariec (2 Replies)
Discussion started by: ariec
2 Replies

10. UNIX for Dummies Questions & Answers

Chown problem

I am trying to change ownership of a file that I own by using the following command: chown norfoklm norfolk norfoklm is the user I am trying to change it to and norfolk is the name of the directory The error I keep getting is: chown: norfolk: Not owner This is on a SUN unix box if... (3 Replies)
Discussion started by: tonydsam
3 Replies
Login or Register to Ask a Question