Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1203  / 1 Year ago, thu, january 12, 2023, 12:45:38

If I create or modify any file or directory with sudo then permissions go to root only. And it seems that I need to use sudo in order to do some things in ubuntu. For example, I can't seem to mount a server without using the super user.


More From » mount

 Answers
3

Using sudo means you are running as the root user for that command. Any files or directories you create will be owned by root. If you want to give your normal user access, you need to change the permissions and/or ownership



something like chown <yourusername>:<yourgroupname> <filename>



when mounting the smb server, try setting the ownership/permissions on the mountpoint first, before mounting the drive.


[#36560] Friday, January 13, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ovierman

Total Points: 445
Total Questions: 108
Total Answers: 111

Location: Libya
Member since Fri, Oct 30, 2020
4 Years ago
;