Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm currently runing Yellow Dog 6.0 and I'm tring to move files to the Hard drive but I keep getting an error that says "unable to write files, user not authorized" any pointers?
Where are you copying the files to (which directory)? Post the output of "ls -ld /path/to/dest" where "/path/to/dest" is the absolute path of your destination directory. Also tell us which user you're running as.
I can't install anything... I'm trying to install firefox 3.0 but it says I am not authorized to write to the directory. I'm trying to write to the hard drive file. I can save to the desktop and to my home folder but not to the, and forgive me for using this term but I am a total newb... I'm trying to save to what would be the C:/ drive... as far as user I have no idea what user would be the authorized one as I am the only user on linux..
well how do i get authorization???? i'm the only user... is there a setting that i'm missing? i would like to be able to write and move files from the hard drive
i'm using the sudo command line. It ask for my password then it said my user does not have permission to perform this task... or something like that. but i've only set up one user and all the passwords ydl6.0 asked me to create when i installed are the same. so i'm stuck...
To use sudo then, you'll have to add yourself to the /etc/sudoers file. Become root on your box. You can use:
Code:
su -
Add the line:
Code:
your_user_name ALL=(ALL) ALL
where you replace your_user_name above with your login user name. Save the file and exit the root shell created with su. Now your sudo commands will allow you to do anything, and allow about 5 minutes before your cached password expires, wherein you'll just enter your password again after that time on the next sudo command you need to execute.
[reps911@localhost ~]$ su -
Password:
[root@localhost ~]# reps911 ALL=(ALL) ALL
-bash: syntax error near unexpected token `('
I think i'm misunderstanding what you said. what am i doing wrong? thanks for all you help
O and this is what i'm getting when i try to install firefox 3.0::
[reps911@localhost ~]$ cd ~/Desktop
[reps911@localhost Desktop]$ sudo tar jxvf firefox-3.0.tar.bz2 -c /opt/
reps911 is not in the sudoers file. This incident will be reported.
Last edited by Reps911; 07-02-2008 at 10:54 PM.
Reason: addition
[reps911@localhost ~]$ su -
Password:
[root@localhost ~]# reps911 ALL=(ALL) ALL
-bash: syntax error near unexpected token `('
I think i'm misunderstanding what you said. what am i doing wrong? thanks for all you help
run:
Code:
su -
<enter root password>
visudo
Look for the line:
Code:
# %wheel ALL=(ALL) ALL
Move the cursor to the beginning of the line and enter the keys:
2x
or press the delete key twice. This will uncomment the line. Now save the file
with the command:
:wq
Next add yourself to the "wheel" group. The line you uncommented allows a member of the wheel group to use sudo.
About your original problem, look at the directory like:
ls -ld /media/disk
to check the permissions of the directory. If this directory is one that is a mounted partition, also check how it is mounted and the filesystem on the partiton. For example, if the partition uses the "vfat" filesystem, and is listed in the /etc/fstab file, you change the permissions for the entire filesystem in the fstab line, using the "uid=" and "gid=" options. E.G. uid=reps911,gid=reps911,dmask=007,fmask=117
These options will mount the filesystem (on the partition) with reps911 being the owner, and reps911 being the group owner with the permissions rwxrwx--- for directories and rw-rw---- for files.
okay now I get this but have no idea what to do next:
Code:
## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.
## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhap using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias FILESERVERS = fs1, fs2
# Host_Alias MAILSERVERS = smtp, smtp2
## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem
## Command Aliases
Did you post just the first part of the sudoers file? Your reply came so soon you may not have noticed my post yet.
i put this:
Code:
[reps911@localhost ~]$ su -
Password:
[root@localhost ~]# visudo
and got this:
Code:
# Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.
## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhap using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias FILESERVERS = fs1, fs2
# Host_Alias MAILSERVERS = smtp, smtp2
## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem
## Command Aliases
IMHO, you are giving up too quickly. Maybe my post was to wordy, but I did give step-by-step instructions for editing the sudoers file. Take care of that problem first so that it is out of the way, and then tackle the permissions problem.
Understanding mounting and how permissions work is something you will need to eventually learn to administer your computer. Even on windows, you want to learn acls and groups to be able to run your computer securely.
Part of the problem is that we don't know anything about the directory where you are having problems. If you can provide more info about it, you can get more specific advice.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.