Computing.Net > Forums > Linux > Permission problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Permission problem

Reply to Message Icon

Name: satimis
Date: February 4, 2006 at 01:46:57 Pacific
OS: Gentoo 1.4
CPU/Ram: PII-350/256MB
Comment:

Hi folks,

Knoppix LiveCD 4.0.2

I have a partition created on HD reserved for Knoppix LiveCD. On default the partition can be mounted both as "root" and "user". My problem is that files on the partition can only be saved as "root". Therefore as "user" after editing the files I can't save them back to the partition. Also I can't save new file on the partition.

Is there any solution? I don't expect starting Knoppix as root nor "su root" on console starting application to work.

TIA

B.R.
satimis



Sponsored Link
Ads by Google

Response Number 1
Name: Jake2
Date: February 4, 2006 at 13:27:40 Pacific
Reply:

If you used FAT, find your user's uid and gid by running "id", and mount with "mount -o uid=1000,gid=100...", for example. Or if it's already mounted, "mount -o remount,uid=1000,gid=100 /mnt/knoppix_space".

If it's a POSIX filesystem like EXT2/3, ReiserFS, XFS, etc., mount and chown everything with "chown -R username:group /mnt/knoppix_space".


0

Response Number 2
Name: satimis
Date: February 5, 2006 at 09:34:48 Pacific
Reply:

Jake2,

Tks for your advice.

The fs of all partitions is ext2/ext3. There are 6 partitions, namely partition 1, 3, 5, 6, 7 and 8 (partition 2 is swap). I haven't added user. What shall I replace for "username"?

What shall I replace for "space" or just a space (pressing the keyboard to add a space)?

Besides there is no entry on /etc/fstab of the partitions.

satimis



0

Response Number 3
Name: 3Dave
Date: February 6, 2006 at 01:49:30 Pacific
Reply:

If the partitions are formatted to ext2/3 then why not just create directories in each partition and assign the rights to those?


0

Response Number 4
Name: satimis
Date: February 6, 2006 at 04:36:22 Pacific
Reply:

Hi 3Dave,

I ran;
# tar -zxpf tarball -C /mnt/partion_x

to decompress the tarball on this partition reserving the original properties.

satimis


0

Response Number 5
Name: 3Dave
Date: February 6, 2006 at 06:50:13 Pacific
Reply:

You may want to try the "--same-owner" switch with tar...the file permissions might be the same but the owner and group may be different.


0

Related Posts

See More



Response Number 6
Name: satimis
Date: February 8, 2006 at 01:20:05 Pacific
Reply:

Hi 3Dave,

I ran;

# tar -jcpf tarball.tarbz2 - creating the tarball

and

# tar -jxpf tarball.tarbz2 - to decompress it

Whether you meant adding --same-owner to them as;

# tar -jcpf --same-owner tarball.tarbz2
and
# tar -jxpf --same-owner tarball.tarbz2

satimis



0

Response Number 7
Name: satimis
Date: February 15, 2006 at 20:05:47 Pacific
Reply:

Hi 3Dave or folks,

Could you please help me advising the webmaster of computing.net that the "List Image on/off" of mycomputing.net did not work for several days, the complete list lost.

I have been searching the whole web and could not find the link/email address to contact the webmaster.

TIA

B.R.
satimis


0

Sponsored Link
Ads by Google
Reply to Message Icon

Where to get Live Linux o... How to make Linux bootabl...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Permission problem

Mount Permission problem ? www.computing.net/answers/linux/mount-permission-problem-/22311.html

bash: permission denied problem www.computing.net/answers/linux/bash-permission-denied-problem/17469.html

permissions denied as root www.computing.net/answers/linux/permissions-denied-as-root/23996.html