LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-03-2008, 12:32 AM   #16
Reps911
LQ Newbie
 
Registered: Jun 2008
Location: california
Distribution: Yellow Dog 6.0
Posts: 21

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by jschiwal View Post
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.

Good Luck!
i'm not giving up... maybey i worded that last post wrong. any ways the directory that wont let me delete,add or move files is the entire fielsystem... if i try to move a file to the file system I get:

Code:
Error while moving items to "/".
You do not have permissions to write to this folder.
and when i try to install anything i get:

Code:
[reps911@localhost ~]$ cd ~/Desktop
[reps911@localhost Desktop]$ sudo tar jxvf firefox-3.0.tar.bz2 -c /opt/
Password:
reps911 is not in the sudoers file.  This incident will be reported.
[reps911@localhost Desktop]$
 
Old 07-03-2008, 12:33 AM   #17
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
OK, I didn't get your last post before I replied.

You need to cursor down toward the bottom of the file.
A shortcut is to use the search function by entering:
/wheel

You just need to delete the "# " characters from the line I already posted.
Either enter "2x" to delete 2 characters, or press the delete key twice.

Then enter ":wq" to write the file and quit.

---

Assuming that your username is "reps911", you can enter:
groups reps911
to see which groups you are a member of.

If you aren't a member of the wheel group, your distro probably has a gui config program where you add users. You probably can also check off which groups you are a member of in this config program.

If you don't have such a config program, then you only need to add your user name to a /etc/group file.
Code:
egrep 'wheel|,' /etc/group
dialout:x:16:jschiwal,tuser
video:x:33:jschiwal,tuser
wheel:x:10:jschiwal
I printed out the line with the wheel group on my /etc/group file. I also printed out examples where more than one users is a member of the group. You can add your name to the end of the line by using a similar program as the one you did before called "vigr".
Code:
sudo /usr/sbin/vigr
This time, enter "/wheel" to locate the cursor on the record for the "wheel" group. Then enter "A" to enter the edit mode and locate the cursor at the end of the line. Type in your username. Then press the "ESC" key. The enter ":wq" to save your changes and quit.

Now you should be able to use "sudo".
 
Old 07-03-2008, 12:37 AM   #18
Reps911
LQ Newbie
 
Registered: Jun 2008
Location: california
Distribution: Yellow Dog 6.0
Posts: 21

Original Poster
Rep: Reputation: 15
okay i'll ttry that in a bit... gotta take a smoke break...
 
Old 07-03-2008, 12:40 AM   #19
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You probably don't want to save files on the root directory "/". The root filesystem should only be used contain system directories. And yes, only root can write files there.

If this is something like a download for an nvidia driver install program, that you will need to run as root, then save it in /root/ instead. You will need to use sudo to save something there. Even in this case you could save the files in your own home directory and then only use sudo when you absolutely have to.

A handy place to save files temporarily is in /tmp. Everyone has access there.

The good news is that knowing that it is the root (/) directory that you are trying to save to, is doesn't sound like you have a misconfigured mount. The permissions on your system are probably all correct.

----

All that said, setting up sudo & adding yourself to the wheel group would be a good idea. You will need to do that to install packages. Suppose you downloaded a package from the source code. You can (and should) perform the "configure" and "make" steps as a normal user, but you need to run the "make install" step as root. For that having sudo working would be better than using "su -". For one thing only that command is run as root. For another, using sudo, the command is logged in /var/log/messages which could come in handy if you made a mistake such as saving a file to the wrong location.

Last edited by jschiwal; 07-03-2008 at 12:44 AM.
 
Old 07-03-2008, 12:58 AM   #20
Reps911
LQ Newbie
 
Registered: Jun 2008
Location: california
Distribution: Yellow Dog 6.0
Posts: 21

Original Poster
Rep: Reputation: 15
okay i did what you said and i got this:

Code:
root:x:0:root,reps911
bin:x:1:root,bin,daemon,reps911
daemon:x:2:root,bin,daemon,reps911
sys:x:3:root,bin,adm,reps911
adm:x:4:root,adm,daemon,reps911
tty:x:5:reps911
disk:x:6:root,reps911
lp:x:7:daemon,lp,reps911
mem:x:8:reps911
kmem:x:9:reps911
wheel:x:10:root,reps911
mail:x:12:mail,reps911
news:x:13:news,reps911
uucp:x:14:uucp,reps911
man:x:15:reps911
games:x:20:reps911
gopher:x:30:reps911
dip:x:40:reps911
ftp:x:50:reps911
lock:x:54:reps911
nobody:x:99:reps911
users:x:100:reps911
rpm:x:37:reps911
"/etc/gtmp" 44L, 902C

[root@localhost ~]# sudo /usr/sbin/vigr
You are using shadow groups on this system.
Would you like to edit /etc/gshadow now [y/n]?
I didn't add my name to wheel it was already there...

Last edited by Reps911; 07-03-2008 at 01:01 AM.
 
Old 07-03-2008, 01:07 AM   #21
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
Reps911 - not to toss any harm your way, but you're going to have to take a step back, and learn about some basics before you embark on more complicated endeavors. The number of back and forths for a step-by-step hand-holding session would be astronomical. I'm not saying I won't help, nor do I mean to speak for others, but you really, really will have to learn things like:

* how to edit a file
* how to become the root user
* what a shell command is
* how to run some basic shell commands

Really if you want to avoid these things, I'd suggest a differnt distro, such as Ubuntu, which tries to hide most of this stuff. No distro can completely shield a user from some of the difficulties in *nix system, but some do a pretty good job for someone who just wants to run various apps and play around with a system.
 
Old 07-03-2008, 01:09 AM   #22
Reps911
LQ Newbie
 
Registered: Jun 2008
Location: california
Distribution: Yellow Dog 6.0
Posts: 21

Original Poster
Rep: Reputation: 15
okay I guess something happened now I get this:

Code:
[root@localhost ~]# sudo tar jxvf firefox-3.0.tar.bz2 -c /opt/
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' or `tar --usage' for more information.
[root@localhost ~]#
 
Old 07-03-2008, 01:12 AM   #23
Reps911
LQ Newbie
 
Registered: Jun 2008
Location: california
Distribution: Yellow Dog 6.0
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr. C. View Post
Reps911 - not to toss any harm your way, but you're going to have to take a step back, and learn about some basics before you embark on more complicated endeavors. The number of back and forths for a step-by-step hand-holding session would be astronomical. I'm not saying I won't help, nor do I mean to speak for others, but you really, really will have to learn things like:

* how to edit a file
* how to become the root user
* what a shell command is
* how to run some basic shell commands

Really if you want to avoid these things, I'd suggest a differnt distro, such as Ubuntu, which tries to hide most of this stuff. No distro can completely shield a user from some of the difficulties in *nix system, but some do a pretty good job for someone who just wants to run various apps and play around with a system.
your probably right but i'm running Yellow Dog Linux 6.0 on my ps3 beacause thats all I got.. I'm down to learn... and yeah i'm probably waY ahead of myself with having no linux usage EVER! but all I wanted was firefox 3.0!!! argg...
 
Old 07-03-2008, 01:14 AM   #24
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
sudo tar -xjvf firefox-3.0.tar.bz2 -C /opt

Case and order of options to tar matters.
 
Old 07-03-2008, 01:30 AM   #25
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
If you modified the /etc/sudoer file with "visudo", then you should be set to use wheel.

Try the command "sudo /sbin/ldconfig". This will update the /etc/ld.so.cache file. You need to be root to run this command. Doing so won't cause any harm.
You could instead try "sudo cat /etc/shadow". Only root has read access to the /etc/shadow file.

Background information:
This command is probably either run when you boot up or in a cron job. It may also be run when you install a package. Some packages like firefox will contain a number of libraries and create a subdirectory in /usr/lib/. This subdirectory is then added to the /etc/ld.so.conf file by the installer. Then /sbin/ldconfig is run to update /etc/ld.so.cache. The ld.so.cache is used by the linker to locate the libraries that a program needs dynamically linked.
 
Old 07-03-2008, 01:43 AM   #26
Reps911
LQ Newbie
 
Registered: Jun 2008
Location: california
Distribution: Yellow Dog 6.0
Posts: 21

Original Poster
Rep: Reputation: 15
alright it finally unpacked to /opt/firefox. but now i need to run the install this is what I got:

Code:
[reps911@localhost Desktop]$ /opt/firefox/firefox
/opt/firefox/run-mozilla.sh: line 166: /opt/firefox/firefox-bin: cannot execute binary file
[reps911@localhost Desktop]$
 
Old 07-03-2008, 02:07 AM   #27
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
ls -l /opt/firefox
 
Old 07-03-2008, 02:13 AM   #28
Reps911
LQ Newbie
 
Registered: Jun 2008
Location: california
Distribution: Yellow Dog 6.0
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr. C. View Post
ls -l /opt/firefox
Mr.C thanx a bunch, I typed ls -l /opt/firefox and got this:

Code:
[reps911@localhost Desktop]$ ls -l /opt/firefox
total 16392
-rwxr-xr-x 1 root root     2025 May 29 13:21 application.ini
-rwxr-xr-x 1 root root      981 May 29 13:21 blocklist.xml
-rwxr-xr-x 1 root root      232 May 29 13:19 browserconfig.properties
drwxr-xr-x 3 root root     4096 May 29 13:21 chrome
drwxr-xr-x 2 root root     4096 May 29 13:21 components
-rwxr-xr-x 1 root root    45096 May 29 13:21 crashreporter
-rwxr-xr-x 1 root root     3558 May 29 13:21 crashreporter.ini
-rwxr-xr-x 1 root root      583 May 29 13:21 crashreporter-override.ini
drwxr-xr-x 5 root root     4096 May 29 13:21 defaults
drwxr-xr-x 2 root root     4096 May 29 13:21 dictionaries
drwxr-xr-x 3 root root     4096 May 29 13:21 extensions
-rwxr-xr-x 1 root root     3949 May 29 13:21 firefox
-rwxr-xr-x 1 root root     7476 May 29 13:21 firefox-bin
drwxr-xr-x 2 root root     4096 May 29 13:21 greprefs
drwxr-xr-x 2 root root     4096 May 29 13:21 icons
-rwxr-xr-x 1 root root      476 May 29 13:21 libfreebl3.chk
-rwxr-xr-x 1 root root   292340 May 29 13:21 libfreebl3.so
-rwxr-xr-x 1 root root    30724 May 29 13:21 libjemalloc.so
-rwxr-xr-x 1 root root   602680 May 29 13:21 libmozjs.so
-rwxr-xr-x 1 root root   200736 May 29 13:21 libnspr4.so
-rwxr-xr-x 1 root root   913844 May 29 13:21 libnss3.so
-rwxr-xr-x 1 root root   304640 May 29 13:21 libnssckbi.so
-rwxr-xr-x 1 root root   119588 May 29 13:21 libnssdbm3.so
-rwxr-xr-x 1 root root    77564 May 29 13:21 libnssutil3.so
-rwxr-xr-x 1 root root    13224 May 29 13:21 libplc4.so
-rwxr-xr-x 1 root root     8684 May 29 13:21 libplds4.so
-rwxr-xr-x 1 root root   125676 May 29 13:21 libsmime3.so
-rwxr-xr-x 1 root root      476 May 29 13:21 libsoftokn3.chk
-rwxr-xr-x 1 root root   181776 May 29 13:21 libsoftokn3.so
-rwxr-xr-x 1 root root   397668 May 29 13:21 libsqlite3.so
-rwxr-xr-x 1 root root   160036 May 29 13:21 libssl3.so
-rwxr-xr-x 1 root root    11816 May 29 13:21 libxpcom.so
-rwxr-xr-x 1 root root 12962304 May 29 13:21 libxul.so
drwxr-xr-x 2 root root     4096 May 29 13:21 modules
-rwxr-xr-x 1 root root    10772 May 29 13:21 mozilla-xremote-client
-rwxr-xr-x 1 root root      112 May 29 13:19 old-homepage-default.properties
-rwxr-xr-x 1 root root       41 May 29 13:21 platform.ini
drwxr-xr-x 2 root root     4096 May 29 13:21 plugins
-rwxr-xr-x 1 root root      177 May 29 13:21 README.txt
-rwxr-xr-x 1 root root    15767 May 29 13:19 removed-files
drwxr-xr-x 6 root root     4096 May 29 13:21 res
-rwxr-xr-x 1 root root    11410 May 29 13:21 run-mozilla.sh
drwxr-xr-x 2 root root     4096 May 29 13:19 searchplugins
-rwxr-xr-x 1 root root      825 May 29 13:21 Throbber-small.gif
-rwxr-xr-x 1 root root    69672 May 29 13:21 updater
-rwxr-xr-x 1 root root      144 May 29 13:19 updater.ini
not too sure what that is...
 
Old 07-03-2008, 02:20 AM   #29
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
Ok, so firefox.bin IS executable.

So it is possible that the file system in which you placed the archive is mounted with the safety "no execute" flag. Enter:

Code:
mount
and show output.
 
Old 07-03-2008, 02:23 AM   #30
Reps911
LQ Newbie
 
Registered: Jun 2008
Location: california
Distribution: Yellow Dog 6.0
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr. C. View Post
Ok, so firefox.bin IS executable.

So it is possible that the file system in which you placed the archive is mounted with the safety "no execute" flag. Enter:

Code:
mount
and show output.
okay i got this:

Code:
[reps911@localhost Desktop]$ mount
/dev/ps3da2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/ps3da1 on /boot type ext3 (rw)
spufs on /spu type spufs (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba, cannot see files, cannot write files. ponganthony Linux - Server 1 10-06-2007 02:57 PM
Samba, cannot see files, cannot write files. ponganthony Linux - Server 3 10-04-2007 06:24 AM
Can't see files and/or write files to DVD/RW lenny45 Linux - Hardware 0 03-29-2006 07:55 PM
Able to write files to MP3 player but no files written into actual device? olnex Linux - Hardware 0 11-11-2005 07:32 AM
Apache: You are not authorized to ... WiWa Linux - Software 10 08-15-2003 05:45 PM


All times are GMT -5. The time now is 08:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration