Changing permissions of a user


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Changing permissions of a user
# 1  
Old 06-03-2002
Changing permissions of a user

So I need to change the permissions of my user account. I can
access the root account on the server, but don't know how to
change the permissions of my user account. I was advised to
try 'userconf' to see if I am part of a group, but I dunno how that works. ANyone who knows how to see the members of a group and how to change permissions on a user from root, PLEASE HELP!!

Smilie
# 2  
Old 06-03-2002
What OS are you using? From your question I'm not sure about what exactly you are trying to change.

If it's permissions on files - check out the man page on chmod
If it's owner of files - check out the man page on chown
If it's for when a user creates new files - check out umask
If it's for accessing different directories - check out the group file (possibly in /etc) or in NIS ypcat group.

If you are using NIS then you need to change a user's group via the Master NIS server.
If you don't know how userconf works, check the man page ( try from the % or $ prompt

% man userconf

And do not post questions twice!!
thehoghunter
# 3  
Old 06-03-2002
Okay, what i meant is when I go into a file via vi and try to change something and save the changes with :wq, i get the message "Cannot create backup file, (use ! to override)". Also whenever i try to create a new file, after i write the file, and type :wq, it says "test.pl (that's my file) Cannot open file for writing" What does this mean? How come I cannot edit anything but can access the files and read them.

I tried man userconf. It gives me "no manual entry for userconf." Is userconf even a command?

Lastly, I'm not sure what OS this server is on. I inherited this project from a friend. It's a learning project for me, so I'm trying to get familiar with Unix and perl.
# 4  
Old 06-03-2002
Okay, to get the OS - post the output of the uname -a command.
(check the man page before doing anything anyone tells you to do - just so you know they didn't get you to kill something ;-)

% uname -a

Is there a command userconf? Not on my servers - I searched the forums and found it posted one other time as an answer but it didn't note what the OS was. Since we don't know what you are running yet, hard to say. Each UNIX version is different - when I went from Solaris to AIX (only for 4 months) I was blown away by what did not work anymore (commands that SUN added to their software - mostly for administration).

It sounds like you are looking to be able to change files so check out the following man pages for your system -
% man id
% man who
% man chmod
% man chown

Make sure if you start changing ownership and permissions that it isn't going to
1. Make your system unsecure.
2. Break an application or server because joeuser now owns all the files.

If you need more info, post back
thehoghunter
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies

2. UNIX for Dummies Questions & Answers

changing directory permissions

Hi, Im getting this annoying problem on file permission when I copy a folder to a mounted external directory. the files inside the copied folders become all executable. I tried to search for ways how to undo the permission over the web but to no avail. tried this one but it doesnt change a... (2 Replies)
Discussion started by: ida1215
2 Replies

3. Shell Programming and Scripting

changing the permissions

HI, I wann give permissions to a folder which contains multiple folders..... how can i give permissions to all folder at a time tat means if i give permissions to main folder it the same permissions has to take on all the folders in the main folders how can i use one command to give... (1 Reply)
Discussion started by: nani1984
1 Replies

4. OS X (Apple)

rsync is changing permissions

I have the following command. This is meant to download all files from my server to the Downloads folder of my startup drive: /usr/local/bin/rsync -avve ssh --numeric-ids --delete --ignore-errors -R grndlvl@myserver.com:/usr/home/./grndlvl grndlvl@myserver.com:/usr/home/./grndlvl/mail_boxes/... (8 Replies)
Discussion started by: rlinsurf
8 Replies

5. UNIX for Dummies Questions & Answers

Changing permissions in a shell script

Hi All, I have a shell script which we keep on changing permissions on a On-Demand Basis-->for e:g--from 400(Read only) to 740(Execute permission) etc. Is there any way by which I can view the history of the script?-->I am interested in finding out the date-time stamps when the script's... (2 Replies)
Discussion started by: DevotedPupil
2 Replies

6. Shell Programming and Scripting

HELP changing file permissions

does anyone know how to write a script that will change file permissions. because the Admin blocked me from altering any of my files im only allowed to read and i heard a script like this can bypass it but i dont know how to write it. Display current users. Display user Ids only. Display... (10 Replies)
Discussion started by: live2learn
10 Replies

7. UNIX for Dummies Questions & Answers

Can I prevent a user from changing the permissions on their home directory.

Hello All, I have a new HPUX system going into production and it will be used by 2 projects. One of the contract requirements is the 2 groups can not have access to the others work or data. I believe I have the system pretty well locked up using groups and permissions and selective mounting of... (2 Replies)
Discussion started by: DanL
2 Replies

8. UNIX for Dummies Questions & Answers

Changing file permissions

Is there a way to change a unix user's default file permissions so that when he creates a file, by default permissions are 777??? Thanks! (7 Replies)
Discussion started by: FredSmith
7 Replies

9. Shell Programming and Scripting

Changing Permissions

Is it possible to change the permissons for an entire directory in one shot? I'm telneting on to a linux server. ...just a beginner-- --Paul (4 Replies)
Discussion started by: pdavid
4 Replies

10. Shell Programming and Scripting

changing file permissions

Use the following to Change permission of fileB (fileB could be fileB*) to change its permission same as the permission of fileA. chmod `ls -l fileA | awk '{pr int "u+", substr($1,2,1), substr($1,3,1), substr($1,4,1), ",g+", substr($1,5,1), substr($1,6,1), substr($1,7,1), ",o+",... (0 Replies)
Discussion started by: gagansharma
0 Replies
Login or Register to Ask a Question